Trait gooey::core::palette::chromatic_adaptation::TransformMatrix
source · [−]pub trait TransformMatrix<Swp, Dwp, T> where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint, {
fn get_cone_response(&self) -> ConeResponseMatrices<T>;
fn generate_transform_matrix(&self) -> [T; 9] { ... }
}
Expand description
Generates a conversion matrix to convert the Xyz tristimulus values from one illuminant to another (Swp -> Dwp)
Required Methods
fn get_cone_response(&self) -> ConeResponseMatrices<T>
fn get_cone_response(&self) -> ConeResponseMatrices<T>
Get the cone response functions for the chromatic adaptation method
Provided Methods
fn generate_transform_matrix(&self) -> [T; 9]
fn generate_transform_matrix(&self) -> [T; 9]
Generates a 3x3 transformation matrix to convert color from one reference white point to another with the given cone_response