pub fn threshold_binary( input: &Image, threshold: f32, max_value: f32, ) -> Result<Image>
Replace values above threshold with max_value and all others with zero.
threshold
max_value