Class PhotometricInterpreterLogLuv
java.lang.Object
org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter
org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreterLogLuv
Photometric interpretation Logluv support. Logluv is an encoding for storing
data inside TIFF images.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Rgb values (reg-green-blue, as R-G-B, as in the RGB color model).(package private) static class
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
ConstructorsConstructorDescriptionPhotometricInterpreterLogLuv
(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height) -
Method Summary
Modifier and TypeMethodDescription(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
-
Constructor Details
-
PhotometricInterpreterLogLuv
public PhotometricInterpreterLogLuv(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height)
-
-
Method Details
-
interpretPixel
public void interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y) throws ImageReadException, IOException - Specified by:
interpretPixel
in classPhotometricInterpreter
- Throws:
ImageReadException
IOException
-
getTristimulusValues
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:
-
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:
-