photon_rs::monochrome
pub fn desaturate(photon_image: &mut PhotonImage)
Desaturate an image by getting the min/max of each pixel's RGB values.
photon_image
// For example, to desaturate an image: use photon::monochrome; monochrome::desaturate(&mut img);