[−][src]Function photon_rs::monochrome::threshold
pub fn threshold(photon_image: &mut PhotonImage, threshold: u32)
Threshold an image using a standard thresholding algorithm.
Arguments
photon_image
- A PhotonImage.threshold
- The amount the image should be thresholded by from 0 to 255.
Example
// For example, to threshold an image of type `PhotonImage`: use photon::monochrome; monochrome::threshold(&mut img, 30);