Trait opencv::prelude::TonemapDurand
source · pub trait TonemapDurand: Tonemap + TonemapDurandConst {
// Required method
fn as_raw_mut_TonemapDurand(&mut self) -> *mut c_void;
// Provided methods
fn set_saturation(&mut self, saturation: f32) -> Result<()> { ... }
fn set_contrast(&mut self, contrast: f32) -> Result<()> { ... }
fn set_sigma_space(&mut self, sigma_space: f32) -> Result<()> { ... }
fn set_sigma_color(&mut self, sigma_color: f32) -> Result<()> { ... }
}Expand description
This algorithm decomposes image into two layers: base layer and detail layer using bilateral filter and compresses contrast of the base layer thus preserving all the details.
This implementation uses regular bilateral filter from OpenCV.
Saturation enhancement is possible as in cv::TonemapDrago.
For more information see DD02 .