Trait opencv::hub_prelude::MergeMertens
source · pub trait MergeMertens: MergeExposures + MergeMertensConst {
// Required method
fn as_raw_mut_MergeMertens(&mut self) -> *mut c_void;
// Provided methods
fn process_with_response(
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
times: &dyn ToInputArray,
response: &dyn ToInputArray
) -> Result<()> { ... }
fn process(
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray
) -> Result<()> { ... }
fn set_contrast_weight(&mut self, contrast_weiht: f32) -> Result<()> { ... }
fn set_saturation_weight(&mut self, saturation_weight: f32) -> Result<()> { ... }
fn set_exposure_weight(&mut self, exposure_weight: f32) -> Result<()> { ... }
}
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 .
Required Methods§
fn as_raw_mut_MergeMertens(&mut self) -> *mut c_void
Provided Methods§
fn process_with_response( &mut self, src: &dyn ToInputArray, dst: &mut dyn ToOutputArray, times: &dyn ToInputArray, response: &dyn ToInputArray ) -> Result<()>
sourcefn process(
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray
) -> Result<()>
fn process( &mut self, src: &dyn ToInputArray, dst: &mut dyn ToOutputArray ) -> Result<()>
Short version of process, that doesn’t take extra arguments.
Parameters
- src: vector of input images
- dst: result image