[][src]Trait opencv::hub_prelude::MergeMertens

pub trait MergeMertens: MergeExposures {
    pub fn as_raw_MergeMertens(&self) -> *const c_void;
pub fn as_raw_mut_MergeMertens(&mut self) -> *mut c_void; pub fn process_with_response(
        &mut self,
        src: &dyn ToInputArray,
        dst: &mut dyn ToOutputArray,
        times: &dyn ToInputArray,
        response: &dyn ToInputArray
    ) -> Result<()> { ... }
pub fn process(
        &mut self,
        src: &dyn ToInputArray,
        dst: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
pub fn get_contrast_weight(&self) -> Result<f32> { ... }
pub fn set_contrast_weight(&mut self, contrast_weiht: f32) -> Result<()> { ... }
pub fn get_saturation_weight(&self) -> Result<f32> { ... }
pub fn set_saturation_weight(
        &mut self,
        saturation_weight: f32
    ) -> Result<()> { ... }
pub fn get_exposure_weight(&self) -> Result<f32> { ... }
pub fn set_exposure_weight(&mut self, exposure_weight: f32) -> Result<()> { ... } }

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

Loading content...

Provided methods

pub fn process_with_response(
    &mut self,
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    times: &dyn ToInputArray,
    response: &dyn ToInputArray
) -> Result<()>
[src]

pub fn process(
    &mut self,
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray
) -> Result<()>
[src]

Short version of process, that doesn't take extra arguments.

Parameters

  • src: vector of input images
  • dst: result image

pub fn get_contrast_weight(&self) -> Result<f32>[src]

pub fn set_contrast_weight(&mut self, contrast_weiht: f32) -> Result<()>[src]

pub fn get_saturation_weight(&self) -> Result<f32>[src]

pub fn set_saturation_weight(&mut self, saturation_weight: f32) -> Result<()>[src]

pub fn get_exposure_weight(&self) -> Result<f32>[src]

pub fn set_exposure_weight(&mut self, exposure_weight: f32) -> Result<()>[src]

Loading content...

Implementors

Loading content...