|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.utils.ColorPixel
public class ColorPixel
Static methods which help to convert colors and vectors with pixels. They are helpful to integrate ImageJ API with JHepWork API. The methods allows to convert pixel colors (integer) into the usual (R,G,B). Also conversion of arrays is supported.
Constructor Summary | |
---|---|
ColorPixel()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorPixel()
Method Detail |
---|
public static Color getColor(int c)
c
- pixel color in compact representation
public static int[] getRGB(int c)
c
- pixel color
public static ArrayList<int[]> getRGB(int[] c)
c
- pixel color
public static ArrayList<P0I> getP0I(int[] c)
c
- pixel color
public static PNI getPNI(int[] c)
c
- pixel color
public static int getPixel(Color c)
c
- color
public static int getPixel(int red, int green, int blue)
red
- Redgreen
- Greenblue
- Blue
public static int[] getPixel(int[] red, int[] green, int[] blue)
red
- array with red (0-255)green
- array with greenblue
- array with blue
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |