- All Known Implementing Classes:
BradfordAdaptation
,XYZscalingAdaptation
public interface ChromaticAdaptation
Interface to be implemented by chromatic adaptation transforms.
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
applyTo
(double[] xyz) Double version ofapplyTo(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
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 version ofapplyTo(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
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-coordinatey
- y-coordinate- Returns:
- the adapted color w.r.t. the target white point (W2).
-