public class TwoChannelColorSpace extends ColorSpace
Modifier and Type | Field and Description |
---|---|
static int |
CS_2C |
private static int |
NUM_COMPONENTS |
CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC, CS_sRGB, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_CMY, TYPE_CMYK, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, TYPE_GRAY, TYPE_HLS, TYPE_HSV, TYPE_Lab, TYPE_Luv, TYPE_RGB, TYPE_XYZ, TYPE_YCbCr, TYPE_Yxy
Modifier | Constructor and Description |
---|---|
protected |
TwoChannelColorSpace(int type,
int components) |
Modifier and Type | Method and Description |
---|---|
float[] |
fromCIEXYZ(float[] color) |
float[] |
fromRGB(float[] rgb) |
static ColorSpace |
getInstance(int colorSpace) |
String |
getName(int idx) |
int |
getNumComponents() |
int |
getType() |
boolean |
isCS_sRGB() |
float[] |
toCIEXYZ(float[] color) |
float[] |
toRGB(float[] color) |
getMaxValue, getMinValue
public static final int CS_2C
private static final int NUM_COMPONENTS
public float[] fromCIEXYZ(float[] color)
fromCIEXYZ
in class ColorSpace
public float[] fromRGB(float[] rgb)
fromRGB
in class ColorSpace
public static ColorSpace getInstance(int colorSpace)
public String getName(int idx)
getName
in class ColorSpace
public int getNumComponents()
getNumComponents
in class ColorSpace
public int getType()
getType
in class ColorSpace
public boolean isCS_sRGB()
isCS_sRGB
in class ColorSpace
public float[] toCIEXYZ(float[] color)
toCIEXYZ
in class ColorSpace
public float[] toRGB(float[] color)
toRGB
in class ColorSpace
Copyright © 2016 Open Microscopy Environment