public class TIFFCIELabColorConverter extends TIFFColorConverter
| Modifier and Type | Field and Description |
|---|---|
private static float |
THRESHOLD |
private static float |
Xn |
private static float |
Yn |
private static float |
Zn |
| Constructor and Description |
|---|
TIFFCIELabColorConverter() |
| Modifier and Type | Method and Description |
|---|---|
private float |
clamp(float x) |
private float |
clamp2(float x) |
void |
fromRGB(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 the
result array. |
void |
toRGB(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 the
rgb array. |
private static final float Xn
private static final float Yn
private static final float Zn
private static final float THRESHOLD
private float clamp(float x)
private float clamp2(float x)
public void fromRGB(float r,
float g,
float b,
float[] result)
TIFFColorConverterresult array.fromRGB in class TIFFColorConverterr - the red value.g - the green value.b - the blue value.result - an array of floats containing three elements.public void toRGB(float x0,
float x1,
float x2,
float[] rgb)
TIFFColorConverterrgb array.toRGB in class TIFFColorConverterx0 - the value of channel 0.x1 - the value of channel 1.x2 - the value of channel 2.rgb - an array of floats containing three elements.Copyright © 2015 Open Microscopy Environment