photon::monochrome
pub fn decompose_max(photon_image: &mut PhotonImage)
Uses a max. decomposition algorithm to convert an image to greyscale.
photon_image
// For example, to decompose an image with max decomposition: monochrome::decompose_max(&mut img);