Class PhotometricInterpreterLogLuv
- java.lang.Object
-
- org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter
-
- org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreterLogLuv
-
public class PhotometricInterpreterLogLuv extends PhotometricInterpreter
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 class
PhotometricInterpreterLogLuv.RgbValues
Rgb values (reg-green-blue, as R-G-B, as in the RGB color model).(package private) static class
PhotometricInterpreterLogLuv.TristimulusValues
Tristimulus 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.PhotometricInterpreter
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.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.(package private) PhotometricInterpreterLogLuv.TristimulusValues
getTristimulusValues(int cieL, int cieA, int cieB)
Receives a triplet of CIELAB values, and calculates the tristimulus values.void
interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y)
-
Methods inherited from class org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter
getBitsPerSample
-
-
-
-
Method Detail
-
interpretPixel
public void interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y) throws ImageReadException, java.io.IOException
- Specified by:
interpretPixel
in classPhotometricInterpreter
- Throws:
ImageReadException
java.io.IOException
-
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
-
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
-
-