[][src]Trait opencv::photo::MergeMertens

pub trait MergeMertens: MergeExposures {
    fn as_raw_MergeMertens(&self) -> *mut c_void;

    fn process_with_response(
        &mut self,
        src: &VectorOfMat,
        dst: &mut Mat,
        times: &Mat,
        response: &Mat
    ) -> Result<()> { ... }
fn process(&mut self, src: &VectorOfMat, dst: &mut Mat) -> Result<()> { ... }
fn get_contrast_weight(&self) -> Result<f32> { ... }
fn set_contrast_weight(&mut self, contrast_weiht: f32) -> Result<()> { ... }
fn get_saturation_weight(&self) -> Result<f32> { ... }
fn set_saturation_weight(&mut self, saturation_weight: f32) -> Result<()> { ... }
fn get_exposure_weight(&self) -> Result<f32> { ... }
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

fn process_with_response(
    &mut self,
    src: &VectorOfMat,
    dst: &mut Mat,
    times: &Mat,
    response: &Mat
) -> Result<()>

fn process(&mut self, src: &VectorOfMat, dst: &mut Mat) -> Result<()>

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

Parameters

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

fn get_contrast_weight(&self) -> Result<f32>

fn set_contrast_weight(&mut self, contrast_weiht: f32) -> Result<()>

fn get_saturation_weight(&self) -> Result<f32>

fn set_saturation_weight(&mut self, saturation_weight: f32) -> Result<()>

fn get_exposure_weight(&self) -> Result<f32>

fn set_exposure_weight(&mut self, exposure_weight: f32) -> Result<()>

Loading content...

Implementors

Loading content...