[−][src]Trait opencv::photo::AlignMTB
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
fn as_raw_AlignMTB(&self) -> *mut c_void
Provided methods
fn process_with_response(
&mut self,
src: &VectorOfMat,
dst: &mut VectorOfMat,
times: &Mat,
response: &Mat
) -> Result<()>
&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<()>
&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