Function imgproc_rs::tone::contrast[][src]

pub fn contrast(
    input: &Image<u8>,
    gain: f64,
    method: Tone
) -> ImgProcResult<Image<u8>>

Adjusts contrast by multiplying each RGB channel by gain if method is Tone::Rgb, or multiplying the L* channel of input in CIELAB by gain if method is Tone::Lab

Arguments

  • gain - Must be between 0 and 1 (inclusive)