pub fn threshold_to_zero(
input: &[u8],
output: &mut [u8],
threshold: u8,
) -> Result<()>Expand description
Binary threshold to zero
Values below threshold are set to zero, others remain unchanged.
§Errors
Returns an error if buffer sizes don’t match