[−][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
pub fn as_raw_AlignMTB(&self) -> *const c_void
[src]
pub fn as_raw_mut_AlignMTB(&mut self) -> *mut c_void
[src]
Provided methods
pub fn process_with_response(
&mut self,
src: &dyn ToInputArray,
dst: &mut Vector<Mat>,
times: &dyn ToInputArray,
response: &dyn ToInputArray
) -> Result<()>
[src]
&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<()>
[src]
&mut self,
src: &dyn 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
pub fn calculate_shift(
&mut self,
img0: &dyn ToInputArray,
img1: &dyn ToInputArray
) -> Result<Point>
[src]
&mut self,
img0: &dyn ToInputArray,
img1: &dyn 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
pub fn shift_mat(
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
shift: Point
) -> Result<()>
[src]
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
shift: Point
) -> Result<()>
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]
&mut self,
img: &dyn ToInputArray,
tb: &mut dyn ToOutputArray,
eb: &mut dyn ToOutputArray
) -> Result<()>
Computes median threshold and exclude bitmaps of given image.
Parameters
- img: input image
- tb: median threshold bitmap
- eb: exclude bitmap