[][src]Function opencv::xphoto::create_tonemap_durand

pub fn create_tonemap_durand(
    gamma: f32,
    contrast: f32,
    saturation: f32,
    sigma_space: f32,
    sigma_color: f32
) -> Result<PtrOfTonemapDurand>

Creates TonemapDurand object

You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.

Parameters

  • gamma: gamma value for gamma correction. See createTonemap
  • contrast: resulting contrast on logarithmic scale, i. e. log(max / min), where max and min are maximum and minimum luminance values of the resulting image.
  • saturation: saturation enhancement value. See createTonemapDrago
  • sigma_space: bilateral filter sigma in color space
  • sigma_color: bilateral filter sigma in coordinate space

C++ default parameters

  • gamma: 1.0f
  • contrast: 4.0f
  • saturation: 1.0f
  • sigma_space: 2.0f
  • sigma_color: 2.0f