[][src]Function opencv::photo::create_tonemap

pub fn create_tonemap(gamma: f32) -> Result<Ptr<dyn Tonemap>>

Creates simple linear mapper with gamma correction

Parameters

  • gamma: positive value for gamma correction. Gamma value of 1.0 implies no correction, gamma equal to 2.2f is suitable for most displays. Generally gamma > 1 brightens the image and gamma < 1 darkens it.

C++ default parameters

  • gamma: 1.0f