Skip to main content

threshold_binary

Function threshold_binary 

Source
pub fn threshold_binary(img: &DynamicImage, threshold: f32) -> Result<GrayImage>
Expand description

Threshold an image to create a binary image

§Arguments

  • img - Input image
  • threshold - Threshold value (0.0 to 1.0)

§Returns

  • Result containing a binary image