Function photon_rs::monochrome::decompose_min
source · pub fn decompose_min(img: &mut PhotonImage)
Expand description
Uses a min. decomposition algorithm to convert an image to greyscale.
Arguments
photon_image
- A PhotonImage.
Example
// For example, to decompose an image with min decomposition:
use photon_rs::monochrome::decompose_min;
use photon_rs::native::open_image;
let mut img = open_image("img.jpg").expect("File should open");
decompose_min(&mut img);