Skip to main content

Module color

Module color 

Source
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§

ColorSpaceTransform
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 RgbImage into 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§

ColorTemperature
Correlated colour temperature (CCT) in Kelvin.