[][src]Function photon::monochrome::grayscale_human_corrected

pub fn grayscale_human_corrected(photon_image: &mut PhotonImage)

Convert an image to grayscale with a human corrected factor, to account for human vision.

Arguments

Example

// For example, to convert an image of type `PhotonImage` to greyscale with a human corrected factor:
use photon::monochrome;
monochrome::grayscale_human_corrected(&mut img);