Interface RGBColorProfile

All Superinterfaces:
ICCColorProfile

public interface RGBColorProfile extends ICCColorProfile
An RGB color profile.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    gammaCompanding(double linearComponent)
    Apply the transfer function ('gamma companding') to a linear component.
    double
    linearComponent(double compandedComponent)
    Perform an inverse gamma companding.
    default void
    linearizeComponents(double[] rgb)
    Perform an inverse gamma companding on the components.
    void
    linearRgbToXYZ(double[] rgb, double[] xyz)
    Convert from linear RGB to xyz coordinates.
    void
    xyzToLinearRgb(double[] xyz, double[] linearRgb)
    Convert from xyz coordinates to linear RGB.
    default void
    xyzToRgb(double[] xyz, double[] rgb)
    Convert from xyz coordinates to RGB.

    Methods inherited from interface io.sf.carte.doc.color.ICCColorProfile

    getWhitePoint
  • Method Details

    • linearizeComponents

      default void linearizeComponents(double[] rgb)
      Perform an inverse gamma companding on the components.
      Parameters:
      rgb - the non-linear color components.
    • linearRgbToXYZ

      void linearRgbToXYZ(double[] rgb, double[] xyz)
      Convert from linear RGB to xyz coordinates.
      Parameters:
      rgb - a 3-vector with the r, g and b components.
      xyz - a 3-vector that can store the resulting xyz coordinates, expressed in this profile's chromaticity.
    • xyzToLinearRgb

      void xyzToLinearRgb(double[] xyz, double[] linearRgb)
      Convert from xyz coordinates to linear RGB.
      Parameters:
      xyz - a 3-vector with the xyz coordinates, expressed in this profile's chromaticity.
      linearRgb - a 3-vector that can store the resulting linear r, g and b components.
    • xyzToRgb

      default void xyzToRgb(double[] xyz, double[] rgb)
      Convert from xyz coordinates to RGB.
      Parameters:
      xyz - a 3-vector with the xyz coordinates, expressed in this profile's chromaticity.
      rgb - a 3-vector that can store the resulting r, g and b components.
    • gammaCompanding

      double gammaCompanding(double linearComponent)
      Apply the transfer function ('gamma companding') to a linear component.
      Parameters:
      linearComponent - the linear component.
      Returns:
      the non-linear color component.
    • linearComponent

      double linearComponent(double compandedComponent)
      Perform an inverse gamma companding.
      Parameters:
      compandedComponent - the non-linear color component.
      Returns:
      the linear component.