Skip to main content

threshold_binary_inv

Function threshold_binary_inv 

Source
pub fn threshold_binary_inv(
    input: &Tensor,
    threshold: f32,
    max_val: f32,
) -> Result<Tensor, ImgProcError>
Expand description

Inverse binary threshold: output 1.0 where input < thresh. Input: [H, W]. Inverse binary threshold: outputs 0.0 where value > threshold, else max_val.