[−][src]Function opencv::intensity_transform::contrast_stretching
pub fn contrast_stretching(
input: Mat,
output: &mut Mat,
r1: i32,
s1: i32,
r2: i32,
s2: i32
) -> Result<()>
Given an input bgr or grayscale image, apply linear contrast stretching on domain [0, 255] and return the resulting image.
Parameters
- input: input bgr or grayscale image.
- output: resulting image of contrast stretching.
- r1: x coordinate of first point (r1, s1) in the transformation function.
- s1: y coordinate of first point (r1, s1) in the transformation function.
- r2: x coordinate of second point (r2, s2) in the transformation function.
- s2: y coordinate of second point (r2, s2) in the transformation function.