public class TIFFYCbCrColorConverter extends TIFFColorConverter
Modifier and Type | Field and Description |
---|---|
private float |
codingRangeCbCr |
private float |
codingRangeY |
private float |
LumaBlue |
private float |
LumaGreen |
private float |
LumaRed |
private float |
referenceBlackCb |
private float |
referenceBlackCr |
private float |
referenceBlackY |
private float |
referenceWhiteCb |
private float |
referenceWhiteCr |
private float |
referenceWhiteY |
Constructor and Description |
---|
TIFFYCbCrColorConverter(TIFFImageMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
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 float LumaRed
private float LumaGreen
private float LumaBlue
private float referenceBlackY
private float referenceWhiteY
private float referenceBlackCb
private float referenceWhiteCb
private float referenceBlackCr
private float referenceWhiteCr
private float codingRangeY
private float codingRangeCbCr
public TIFFYCbCrColorConverter(TIFFImageMetadata metadata)
public void fromRGB(float r, float g, float b, float[] result)
TIFFColorConverter
result
array.fromRGB
in class TIFFColorConverter
r
- the red value.g
- the green value.b
- the blue value.result
- an array of float
s containing three elements.public void toRGB(float x0, float x1, float x2, float[] rgb)
TIFFColorConverter
rgb
array.toRGB
in class TIFFColorConverter
x0
- the value of channel 0.x1
- the value of channel 1.x2
- the value of channel 2.rgb
- an array of float
s containing three elements.Copyright © 2017 Open Microscopy Environment