ColorSpace.Adaptation
public
static
final
enum
ColorSpace.Adaptation
extends Enum<ColorSpace.Adaptation>
java.lang.Object | ||
↳ | java.lang.Enum<android.graphics.ColorSpace.Adaptation> | |
↳ | android.graphics.ColorSpace.Adaptation |
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:
[LMS]=A[XYZ]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:
[L1M1S1]=A[W1XW1YW1Z] [L2M2S2]=A[W2XW2YW2Z] D=[L2L100 0M2M10 00S2S1] T=A−1.D.AAs an example, the resulting matrix T can then be used to perform the chromatic adaptation of sRGB XYZ transform from D65 to D50:
sRGBD50=T.sRGBD65Summary
Enum values | |
---|---|
ColorSpace.Adaptation |
BRADFORD
Bradford chromatic adaptation transform, as defined in the CIECAM97s color appearance model. |
ColorSpace.Adaptation |
CIECAT02
CIECAT02 chromatic adaption transform, as defined in the CIECAM02 color appearance model. |
ColorSpace.Adaptation |
VON_KRIES
von Kries chromatic adaptation transform. |
Public methods | |
---|---|
static
ColorSpace.Adaptation
|
valueOf(String name)
|
static
final
Adaptation[]
|
values()
|
Inherited methods | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||
| |||||||||||||||||||||||
|
Enum values
BRADFORD
public static final ColorSpace.Adaptation BRADFORD
Bradford chromatic adaptation transform, as defined in the CIECAM97s color appearance model.
CIECAT02
public static final ColorSpace.Adaptation CIECAT02
CIECAT02 chromatic adaption transform, as defined in the CIECAM02 color appearance model.
VON_KRIES
public static final ColorSpace.Adaptation VON_KRIES
von Kries chromatic adaptation transform.
Public methods
valueOf
public static ColorSpace.Adaptation valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
ColorSpace.Adaptation |