Class PhotometricInterpreterLogLuv
java.lang.Object
org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
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 classRgb values (reg-green-blue, as R-G-B, as in the RGB color model).(package private) static classTristimulus color values (red-green-blue, as X-Y-Z, in the CIE XYZ color space). -
Field Summary
Fields inherited from class AbstractPhotometricInterpreter
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.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 AbstractPhotometricInterpreter
getBitsPerSample
-
Constructor Details
-
PhotometricInterpreterLogLuv
public PhotometricInterpreterLogLuv(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height)
-
-
Method Details
-
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:
-
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:
-
interpretPixel
public void interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y) throws ImagingException, IOException - Specified by:
interpretPixelin classAbstractPhotometricInterpreter- Throws:
ImagingExceptionIOException
-