Expand description
Color space transformations.
This transform module provides the canonical entry points for color processing:
- White Balance application
- Color Matrix application (Camera RGB -> Output RGB)
It re-exports the optimized primitives from crate::processing::color and
provides the ColorSpaceTransform struct for bundled pipeline steps.
Re-exports§
pub use crate::processing::color::apply_color_matrix;pub use crate::processing::color::apply_white_balance;pub use crate::processing::color::apply_white_balance_raw;
Structs§
- Color
Space Transform - Pipeline step for color space corrections.
Constants§
- XYZ_
TO_ SRGB_ D65 - Matrix to convert from CIE XYZ to sRGB (D65).
Functions§
- compute_
camera_ to_ srgb - Compute a Camera→sRGB color matrix from a DNG-style XYZ→Camera color matrix.
- convert_
to_ srgb - Convert an
RgbImageinto sRGB-encoded color space, in place. - estimate_
cct_ from_ as_ shot_ neutral - Estimate scene colour temperature from as-shot neutral (white balance) values.
- interpolate_
color_ matrix - Interpolate between two colour matrices based on colour temperature.
Type Aliases§
- Color
Temperature - Correlated colour temperature (CCT) in Kelvin.