[][src]Function photon::monochrome::threshold

pub fn threshold(photon_image: &mut PhotonImage, threshold: u32)

Threshold an image using a standard thresholding algorithm.

Arguments

Example

// For example, to threshold an image of type `PhotonImage`:
use photon::monochrome;
monochrome::threshold(&mut img, 30);