Skip to main content

farg/chromatic_adaptation_transform/
cmc_cat97.rs

1use super::ChromaticAdaptationTransform;
2
3impl ChromaticAdaptationTransform {
4  /// The CMC CAT97 chromatic adaptation transform.
5  pub const CMC_CAT97: Self = Self::new(
6    "CMC CAT97",
7    [
8      [0.8951, 0.2664, -0.1614],
9      [-0.7502, 1.7135, 0.0367],
10      [0.0389, -0.0685, 1.0296],
11    ],
12  );
13  /// The default CAT when this is the highest-priority enabled transform.
14  #[cfg(all(
15    not(feature = "cat-bradford"),
16    not(feature = "cat-cat16"),
17    not(feature = "cat-cat02"),
18    not(feature = "cat-cmc-cat2000"),
19    not(feature = "cat-von-kries"),
20    not(feature = "cat-hunt-pointer-estevez"),
21    not(feature = "cat-sharp"),
22    not(feature = "cat-fairchild"),
23  ))]
24  pub const DEFAULT: Self = Self::CMC_CAT97;
25}