public class ColorPixel extends Object
Constructor and Description |
---|
ColorPixel() |
Modifier and Type | Method and Description |
---|---|
static Color |
getColor(int c)
Return color from pixel color (integer compact value representing color
in the ImageJ representation).
|
static ArrayList<P0I> |
getP0I(int[] c)
Get array list with (R,G,B) from list of pixels.
|
static int |
getPixel(Color c)
Convert color into compact integer representation of pixel.
|
static int[] |
getPixel(int[] red,
int[] green,
int[] blue)
Convert arrays with R,G,B into a pixel color as in ImageJ.
|
static int |
getPixel(int red,
int green,
int blue)
Convert color (red,green,blue) into compact integer representation of
pixel.
|
static PNI |
getPNI(int[] c)
Get array list with (R,G,B) from list of pixels.
|
static int[] |
getRGB(int c)
Get (R,G,B) from a pixel color.
|
static ArrayList<int[]> |
getRGB(int[] c)
Get array list with (R,G,B) from list of pixels.
|
public static Color getColor(int c)
c
- pixel color in compact representationpublic static int[] getRGB(int c)
c
- pixel colorpublic static ArrayList<int[]> getRGB(int[] c)
c
- pixel colorpublic static ArrayList<P0I> getP0I(int[] c)
c
- pixel colorpublic static PNI getPNI(int[] c)
c
- pixel colorpublic static int getPixel(Color c)
c
- colorpublic static int getPixel(int red, int green, int blue)
red
- Redgreen
- Greenblue
- Bluepublic static int[] getPixel(int[] red, int[] green, int[] blue)
red
- array with red (0-255)green
- array with greenblue
- array with blueJas4pp 1.5 © Java Analysis Studio for Particle Physics