[][src]Function photon::monochrome::decompose_max

pub fn decompose_max(photon_image: &mut PhotonImage)

Uses a max. decomposition algorithm to convert an image to greyscale.

Arguments

Example

// For example, to decompose an image with max decomposition:
monochrome::decompose_max(&mut img);