[][src]Function photon_rs::monochrome::decompose_max

pub fn decompose_max(photon_image: &mut PhotonImage)

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

Arguments

  • photon_image - A PhotonImage.

Example

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