loci.formats
Class TwoChannelColorSpace

java.lang.Object
  extended by java.awt.color.ColorSpace
      extended by loci.formats.TwoChannelColorSpace
All Implemented Interfaces:
Serializable

public class TwoChannelColorSpace
extends ColorSpace

ColorSpace for 2-channel images.

See Also:
Serialized Form

Field Summary
static int CS_2C
           
 
Fields inherited from class java.awt.color.ColorSpace
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
 
Constructor Summary
protected TwoChannelColorSpace(int type, int components)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.awt.color.ColorSpace
getMaxValue, getMinValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CS_2C

public static final int CS_2C
See Also:
Constant Field Values
Constructor Detail

TwoChannelColorSpace

protected TwoChannelColorSpace(int type,
                               int components)
Method Detail

fromCIEXYZ

public float[] fromCIEXYZ(float[] color)
Specified by:
fromCIEXYZ in class ColorSpace

fromRGB

public float[] fromRGB(float[] rgb)
Specified by:
fromRGB in class ColorSpace

getInstance

public static ColorSpace getInstance(int colorSpace)

getName

public String getName(int idx)
Overrides:
getName in class ColorSpace

getNumComponents

public int getNumComponents()
Overrides:
getNumComponents in class ColorSpace

getType

public int getType()
Overrides:
getType in class ColorSpace

isCS_sRGB

public boolean isCS_sRGB()
Overrides:
isCS_sRGB in class ColorSpace

toCIEXYZ

public float[] toCIEXYZ(float[] color)
Specified by:
toCIEXYZ in class ColorSpace

toRGB

public float[] toRGB(float[] color)
Specified by:
toRGB in class ColorSpace