Skip to main content

threshold_binary

Function threshold_binary 

Source
pub fn threshold_binary(
    input: &Image,
    threshold: f32,
    max_value: f32,
) -> Result<Image>
Expand description

Replace values above threshold with max_value and all others with zero.