Skip to main content

black_point

Function black_point 

Source
pub fn black_point(
    p: &Profile,
    intent: Intent,
    _input: bool,
) -> Result<f64, CmsError>
Expand description

Luminance (Y, D50-relative) of the profile’s black point for intent.

Follows the structure of Adobe’s published BPC algorithm: matrix/TRC profiles use device zero; v4 LUT profiles in perceptual/saturation use the perceptual reference black; other LUT profiles use the darkest colour the device reaches (Lab 0 round-tripped through BToA/AToB, or device black for additive spaces). The destination-side curve fitting of the paper is not implemented; the round-trip black is used directly.