[][src]Trait opencv::photo::AlignMTB

pub trait AlignMTB: AlignExposures {
    pub fn as_raw_AlignMTB(&self) -> *const c_void;
pub fn as_raw_mut_AlignMTB(&mut self) -> *mut c_void; pub fn process_with_response(
        &mut self,
        src: &dyn ToInputArray,
        dst: &mut Vector<Mat>,
        times: &dyn ToInputArray,
        response: &dyn ToInputArray
    ) -> Result<()> { ... }
pub fn process(
        &mut self,
        src: &dyn ToInputArray,
        dst: &mut Vector<Mat>
    ) -> Result<()> { ... }
pub fn calculate_shift(
        &mut self,
        img0: &dyn ToInputArray,
        img1: &dyn ToInputArray
    ) -> Result<Point> { ... }
pub fn shift_mat(
        &mut self,
        src: &dyn ToInputArray,
        dst: &mut dyn ToOutputArray,
        shift: Point
    ) -> Result<()> { ... }
pub fn compute_bitmaps(
        &mut self,
        img: &dyn ToInputArray,
        tb: &mut dyn ToOutputArray,
        eb: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
pub fn get_max_bits(&self) -> Result<i32> { ... }
pub fn set_max_bits(&mut self, max_bits: i32) -> Result<()> { ... }
pub fn get_exclude_range(&self) -> Result<i32> { ... }
pub fn set_exclude_range(&mut self, exclude_range: i32) -> Result<()> { ... }
pub fn get_cut(&self) -> Result<bool> { ... }
pub fn set_cut(&mut self, value: bool) -> Result<()> { ... } }

This algorithm converts images to median threshold bitmaps (1 for pixels brighter than median luminance and 0 otherwise) and than aligns the resulting bitmaps using bit operations.

It is invariant to exposure, so exposure values and camera response are not necessary.

In this implementation new image regions are filled with zeros.

For more information see GW03 .

Required methods

Loading content...

Provided methods

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

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

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

Parameters

  • src: vector of input images
  • dst: vector of aligned images

pub fn calculate_shift(
    &mut self,
    img0: &dyn ToInputArray,
    img1: &dyn ToInputArray
) -> Result<Point>
[src]

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

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

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

Parameters

  • src: input image
  • dst: result image
  • shift: shift value

pub fn compute_bitmaps(
    &mut self,
    img: &dyn ToInputArray,
    tb: &mut dyn ToOutputArray,
    eb: &mut dyn ToOutputArray
) -> Result<()>
[src]

Computes median threshold and exclude bitmaps of given image.

Parameters

  • img: input image
  • tb: median threshold bitmap
  • eb: exclude bitmap

pub fn get_max_bits(&self) -> Result<i32>[src]

pub fn set_max_bits(&mut self, max_bits: i32) -> Result<()>[src]

pub fn get_exclude_range(&self) -> Result<i32>[src]

pub fn set_exclude_range(&mut self, exclude_range: i32) -> Result<()>[src]

pub fn get_cut(&self) -> Result<bool>[src]

pub fn set_cut(&mut self, value: bool) -> Result<()>[src]

Loading content...

Implementors

impl AlignMTB for PtrOfAlignMTB[src]

Loading content...