Skip to main content

apply_black_level

Function apply_black_level 

Source
pub fn apply_black_level(raw: &mut RawImage)
Expand description

Subtract per-channel black levels from raw CFA data in place.

Each pixel’s black level is determined by its position in the 2×2 Bayer pattern: black_levels[(y % 2) * 2 + (x % 2)].

This is a no-op if all black levels are zero.