Class PhotometricInterpreterLogLuv
- java.lang.Object
-
- org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
-
- org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreterLogLuv
-
public class PhotometricInterpreterLogLuv extends AbstractPhotometricInterpreter
Photometric interpretation Logluv support. Logluv is an encoding for storing data inside TIFF images.- See Also:
- Logluv TIFF
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPhotometricInterpreterLogLuv.RgbValuesRgb values (reg-green-blue, as R-G-B, as in the RGB color model).(package private) static classPhotometricInterpreterLogLuv.TristimulusValuesTristimulus color values (red-green-blue, as X-Y-Z, in the CIE XYZ color space).
-
Field Summary
-
Fields inherited from class org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
height, predictor, samplesPerPixel, width
-
-
Constructor Summary
Constructors Constructor Description PhotometricInterpreterLogLuv(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) PhotometricInterpreterLogLuv.RgbValuesgetRgbValues(PhotometricInterpreterLogLuv.TristimulusValues tristimulusValues)Receives a triplet tristimulus values (CIE XYZ) and then does a CIELAB-CIEXYZ conversion (consult Wikipedia link for formula), where the CIELAB values are used to calculate the tristimulus values of the reference white point.(package private) PhotometricInterpreterLogLuv.TristimulusValuesgetTristimulusValues(int cieL, int cieA, int cieB)Receives a triplet of CIELAB values, and calculates the tristimulus values.voidinterpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y)-
Methods inherited from class org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
getBitsPerSample
-
-
-
-
Method Detail
-
getRgbValues
PhotometricInterpreterLogLuv.RgbValues getRgbValues(PhotometricInterpreterLogLuv.TristimulusValues tristimulusValues)
Receives a triplet tristimulus values (CIE XYZ) and then does a CIELAB-CIEXYZ conversion (consult Wikipedia link for formula), where the CIELAB values are used to calculate the tristimulus values of the reference white point.- Parameters:
tristimulusValues- the XYZ tristimulus values- Returns:
- RGB values
- See Also:
- CIELAB color space
-
getTristimulusValues
PhotometricInterpreterLogLuv.TristimulusValues getTristimulusValues(int cieL, int cieA, int cieB)
Receives a triplet of CIELAB values, and calculates the tristimulus values. The reference white point used here is the equivalent to summer sun and sky.- Parameters:
cieL- lightness from black to whitecieA- lightness from green to redcieB- lightness from blue to yellow- Returns:
- tristimulus (X, Y, and Z) values
- See Also:
- CIELAB color space, White point
-
interpretPixel
public void interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y) throws ImagingException, java.io.IOException
- Specified by:
interpretPixelin classAbstractPhotometricInterpreter- Throws:
ImagingExceptionjava.io.IOException
-
-