Trait opencv::prelude::MergeMertensConst
source · pub trait MergeMertensConst: MergeExposuresConst {
fn as_raw_MergeMertens(&self) -> *const c_void;
fn get_contrast_weight(&self) -> Result<f32> { ... }
fn get_saturation_weight(&self) -> Result<f32> { ... }
fn get_exposure_weight(&self) -> Result<f32> { ... }
}
Expand description
Pixels are weighted using contrast, saturation and well-exposedness measures, than images are combined using laplacian pyramids.
The resulting image weight is constructed as weighted average of contrast, saturation and well-exposedness measures.
The resulting image doesn’t require tonemapping and can be converted to 8-bit image by multiplying by 255, but it’s recommended to apply gamma correction and/or linear tonemapping.
For more information see MK07 .