Function imageproc::contrast::stretch_contrast_mut
source · pub fn stretch_contrast_mut(
image: &mut GrayImage,
input_min: u8,
input_max: u8,
output_min: u8,
output_max: u8
)
Expand description
Stretches the contrast in an image, linearly mapping intensities in (input_lower, input_upper)
to (output_lower, output_upper)
and saturating
values outside this input range.
See the stretch_contrast
documentation for more.
§Panics
If input_lower >= input_upper
or output_lower > output_upper
.