Class TIFFCIELabColorConverter
- java.lang.Object
-
- com.github.jaiimageio.plugins.tiff.TIFFColorConverter
-
- com.github.jaiimageio.impl.plugins.tiff.TIFFCIELabColorConverter
-
public class TIFFCIELabColorConverter extends TIFFColorConverter
-
-
Constructor Summary
Constructors Constructor Description TIFFCIELabColorConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private floatclamp(float x)private floatclamp2(float x)voidfromRGB(float r, float g, float b, float[] result)Converts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of theresultarray.voidtoRGB(float x0, float x1, float x2, float[] rgb)Converts a triple in the native color space of this TIFFColorConverter into an RGB triple, and stores the result in the first three entries of thergbarray.
-
-
-
Field Detail
-
Xn
private static final float Xn
- See Also:
- Constant Field Values
-
Yn
private static final float Yn
- See Also:
- Constant Field Values
-
Zn
private static final float Zn
- See Also:
- Constant Field Values
-
THRESHOLD
private static final float THRESHOLD
-
-
Method Detail
-
clamp
private float clamp(float x)
-
clamp2
private float clamp2(float x)
-
fromRGB
public void fromRGB(float r, float g, float b, float[] result)Description copied from class:TIFFColorConverterConverts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of theresultarray.- Specified by:
fromRGBin classTIFFColorConverter- Parameters:
r- the red value.g- the green value.b- the blue value.result- an array offloats containing three elements.
-
toRGB
public void toRGB(float x0, float x1, float x2, float[] rgb)Description copied from class:TIFFColorConverterConverts a triple in the native color space of this TIFFColorConverter into an RGB triple, and stores the result in the first three entries of thergbarray.- Specified by:
toRGBin classTIFFColorConverter- Parameters:
x0- the value of channel 0.x1- the value of channel 1.x2- the value of channel 2.rgb- an array offloats containing three elements.
-
-