Skip to main content

threshold_binary_f32

Function threshold_binary_f32 

Source
pub fn threshold_binary_f32(
    input: &ImageF32,
    thresh: f32,
    max_val: f32,
) -> Option<ImageF32>
Expand description

Binary threshold on f32 image. Binary threshold on single-channel f32 image. Pixels > thresh become max_val, otherwise 0.