Trait AlignMTBTrait

Source
pub trait AlignMTBTrait: AlignExposuresTrait + AlignMTBTraitConst {
    // Required method
    fn as_raw_mut_AlignMTB(&mut self) -> *mut c_void;

    // Provided methods
    fn process_with_response(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut Vector<Mat>,
        times: &impl ToInputArray,
        response: &impl ToInputArray,
    ) -> Result<()> { ... }
    fn process(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut Vector<Mat>,
    ) -> Result<()> { ... }
    fn calculate_shift(
        &mut self,
        img0: &impl ToInputArray,
        img1: &impl ToInputArray,
    ) -> Result<Point> { ... }
    fn shift_mat(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut impl ToOutputArray,
        shift: Point,
    ) -> Result<()> { ... }
    fn compute_bitmaps(
        &mut self,
        img: &impl ToInputArray,
        tb: &mut impl ToOutputArray,
        eb: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
    fn set_max_bits(&mut self, max_bits: i32) -> Result<()> { ... }
    fn set_exclude_range(&mut self, exclude_range: i32) -> Result<()> { ... }
    fn set_cut(&mut self, value: bool) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::photo::AlignMTB

Required Methods§

Provided Methods§

Source

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

Source

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

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

§Parameters
  • src: vector of input images
  • dst: vector of aligned images
Source

fn calculate_shift( &mut self, img0: &impl ToInputArray, img1: &impl ToInputArray, ) -> Result<Point>

Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.

§Parameters
  • img0: first image
  • img1: second image
Source

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

Helper function, that shift Mat filling new regions with zeros.

§Parameters
  • src: input image
  • dst: result image
  • shift: shift value
Source

fn compute_bitmaps( &mut self, img: &impl ToInputArray, tb: &mut impl ToOutputArray, eb: &mut impl ToOutputArray, ) -> Result<()>

Computes median threshold and exclude bitmaps of given image.

§Parameters
  • img: input image
  • tb: median threshold bitmap
  • eb: exclude bitmap
Source

fn set_max_bits(&mut self, max_bits: i32) -> Result<()>

Source

fn set_exclude_range(&mut self, exclude_range: i32) -> Result<()>

Source

fn set_cut(&mut self, value: bool) -> 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§