Enum Class ColorSpace.Adaptation
- All Implemented Interfaces:
Serializable
,Comparable<ColorSpace.Adaptation>
,Constable
- Enclosing class:
ColorSpace
List of adaptation matrices that can be used for chromatic adaptation using the von Kries transform. These matrices are used to convert values in the CIE XYZ space to values in the LMS space (Long Medium Short).
Given an adaptation matrix \(A\), the conversion from XYZ to LMS is straightforward:
$$\left[ \begin{array}{c} L\\ M\\ S \end{array} \right] = A \left[ \begin{array}{c} X\\ Y\\ Z \end{array} \right]$$
The complete von Kries transform \(T\) uses a diagonal matrix noted \(D\) to perform the adaptation in LMS space. In addition to \(A\) and \(D\), the source white point \(W1\) and the destination white point \(W2\) must be specified:
$$\begin{align*} \left[ \begin{array}{c} L_1\\ M_1\\ S_1 \end{array} \right] invalid input: '&'= A \left[ \begin{array}{c} W1_X\\ W1_Y\\ W1_Z \end{array} \right] \\\ \left[ \begin{array}{c} L_2\\ M_2\\ S_2 \end{array} \right] invalid input: '&'= A \left[ \begin{array}{c} W2_X\\ W2_Y\\ W2_Z \end{array} \right] \\\ D invalid input: '&'= \left[ \begin{matrix} \frac{L_2}{L_1} invalid input: '&' 0 invalid input: '&' 0 \\\ 0 invalid input: '&' \frac{M_2}{M_1} invalid input: '&' 0 \\\ 0 invalid input: '&' 0 invalid input: '&' \frac{S_2}{S_1} \end{matrix} \right] \\\ T invalid input: '&'= A^{-1}.D.A \end{align*}$$
As an example, the resulting matrix \(T\) can then be used to perform the chromatic adaptation of sRGB XYZ transform from D65 to D50:
$$sRGB_{D50} = T.sRGB_{D65}$$
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorSpace.Adaptation
Returns the enum constant of this class with the specified name.static ColorSpace.Adaptation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BRADFORD
Bradford chromatic adaptation transform, as defined in the CIECAM97s color appearance model. -
VON_KRIES
von Kries chromatic adaptation transform. -
CIECAT02
CIECAT02 chromatic adaption transform, as defined in the CIECAM02 color appearance model.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-