Class TIFFCIELabColorConverter

java.lang.Object
com.github.jaiimageio.plugins.tiff.TIFFColorConverter
com.github.jaiimageio.impl.plugins.tiff.TIFFCIELabColorConverter

public class TIFFCIELabColorConverter extends TIFFColorConverter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final float
     
    private static final float
     
    private static final float
     
    private static final float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private float
    clamp(float x)
     
    private float
    clamp2(float x)
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TIFFCIELabColorConverter

      public TIFFCIELabColorConverter()
  • Method Details

    • clamp

      private float clamp(float x)
    • clamp2

      private float clamp2(float x)
    • fromRGB

      public void fromRGB(float r, float g, float b, float[] result)
      Description copied from class: TIFFColorConverter
      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.
      Specified by:
      fromRGB in class TIFFColorConverter
      Parameters:
      r - the red value.
      g - the green value.
      b - the blue value.
      result - an array of floats containing three elements.
    • toRGB

      public void toRGB(float x0, float x1, float x2, float[] rgb)
      Description copied from class: TIFFColorConverter
      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.
      Specified by:
      toRGB in class TIFFColorConverter
      Parameters:
      x0 - the value of channel 0.
      x1 - the value of channel 1.
      x2 - the value of channel 2.
      rgb - an array of floats containing three elements.