pub fn threshold_range(
input: &[u8],
output: &mut [u8],
low_threshold: u8,
high_threshold: u8,
) -> Result<()>Expand description
Range threshold - keep values within [low, high]
Values outside range are set to zero.
§Errors
Returns an error if buffer sizes don’t match or if low > high