Skip to main content

correct_bad_pixels

Function correct_bad_pixels 

Source
pub fn correct_bad_pixels(raw: &mut RawImage, bad_pixels: &[(u32, u32)])
Expand description

Correct bad pixels in-place using the median replacement strategy.

For each bad pixel coordinate, replaces the pixel value with the median of same-CFA-color neighbors within a 5×5 window.