Interface ChromaticAdaptation

All Known Implementing Classes:
BradfordAdaptation, XYZscalingAdaptation

public interface ChromaticAdaptation
Interface to be implemented by chromatic adaptation transforms.
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    applyTo(double[] xyz)
    Double version of applyTo(float[]).
    default double[]
    applyTo(double x, double y)
    Transforms the specified xy source color coordinates to target xy coordinates.
    float[]
    applyTo(float[] xyz)
    Transforms the specified XYZ source color coordinates to target coordinates.
  • Method Details

    • applyTo

      float[] applyTo(float[] xyz)
      Transforms the specified XYZ source color coordinates to target coordinates. The specified color coordinates are interpreted relative to (source) white point (W1). Returns a new color adapted to (target) white point W2.
      Parameters:
      xyz - the original color point w.r.t. the source white point (W1)
      Returns:
      the adapted color w.r.t. the target white point (W2).
    • applyTo

      double[] applyTo(double[] xyz)
      Double version of applyTo(float[]).
      Parameters:
      xyz - the original color point w.r.t. the source white point (W1)
      Returns:
      the adapted color w.r.t. the target white point (W2).
    • applyTo

      default double[] applyTo(double x, double y)
      Transforms the specified xy source color coordinates to target xy coordinates. The specified color coordinates are interpreted relative to (source) white point (W1). Returns xy color coordinates adapted to (target) white point W2.
      Parameters:
      x - x-coordinate
      y - y-coordinate
      Returns:
      the adapted color w.r.t. the target white point (W2).