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

pub trait AlignMTB: AlignExposures {
    fn as_raw_AlignMTB(&self) -> *mut c_void;

    fn process_with_response(
        &mut self,
        src: &VectorOfMat,
        dst: &mut VectorOfMat,
        times: &Mat,
        response: &Mat
    ) -> Result<()> { ... }
fn process(
        &mut self,
        src: &VectorOfMat,
        dst: &mut VectorOfMat
    ) -> Result<()> { ... }
fn calculate_shift(&mut self, img0: &Mat, img1: &Mat) -> Result<Point> { ... }
fn shift_mat(
        &mut self,
        src: &Mat,
        dst: &mut Mat,
        shift: Point
    ) -> Result<()> { ... }
fn compute_bitmaps(
        &mut self,
        img: &Mat,
        tb: &mut Mat,
        eb: &mut Mat
    ) -> Result<()> { ... }
fn get_max_bits(&self) -> Result<i32> { ... }
fn set_max_bits(&mut self, max_bits: i32) -> Result<()> { ... }
fn get_exclude_range(&self) -> Result<i32> { ... }
fn set_exclude_range(&mut self, exclude_range: i32) -> Result<()> { ... }
fn get_cut(&self) -> Result<bool> { ... }
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

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

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

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

Parameters

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

fn calculate_shift(&mut self, img0: &Mat, img1: &Mat) -> 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

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

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

Parameters

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

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

Computes median threshold and exclude bitmaps of given image.

Parameters

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

fn get_max_bits(&self) -> Result<i32>

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

fn get_exclude_range(&self) -> Result<i32>

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

fn get_cut(&self) -> Result<bool>

fn set_cut(&mut self, value: bool) -> Result<()>

Loading content...

Implementors

Loading content...