MergeMertensTrait

Trait MergeMertensTrait 

Source
pub trait MergeMertensTrait: MergeExposuresTrait + MergeMertensTraitConst {
    // Required method
    fn as_raw_mut_MergeMertens(&mut self) -> *mut c_void;

    // Provided methods
    fn process_with_response(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut impl ToOutputArray,
        times: &impl ToInputArray,
        response: &impl ToInputArray,
    ) -> Result<()> { ... }
    fn process(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut impl 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

Mutable methods for crate::photo::MergeMertens

Required Methods§

Provided Methods§

Source

fn process_with_response( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray, times: &impl ToInputArray, response: &impl ToInputArray, ) -> Result<()>

Source

fn process( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray, ) -> Result<()>

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

§Parameters
  • src: vector of input images
  • dst: result image
Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§