pub trait AlignMTB: AlignExposures + AlignMTBConst {
fn as_raw_mut_AlignMTB(&mut self) -> *mut c_void;
fn process_with_response(
&mut self,
src: &dyn ToInputArray,
dst: &mut Vector<Mat>,
times: &dyn ToInputArray,
response: &dyn ToInputArray
) -> Result<()> { ... }
fn process(
&mut self,
src: &dyn ToInputArray,
dst: &mut Vector<Mat>
) -> Result<()> { ... }
fn calculate_shift(
&mut self,
img0: &dyn ToInputArray,
img1: &dyn ToInputArray
) -> Result<Point> { ... }
fn shift_mat(
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
shift: Point
) -> Result<()> { ... }
fn compute_bitmaps(
&mut self,
img: &dyn ToInputArray,
tb: &mut dyn ToOutputArray,
eb: &mut dyn 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<()> { ... }
}Required Methods§
fn as_raw_mut_AlignMTB(&mut self) -> *mut c_void
Provided Methods§
fn process_with_response(
&mut self,
src: &dyn ToInputArray,
dst: &mut Vector<Mat>,
times: &dyn ToInputArray,
response: &dyn ToInputArray
) -> Result<()>
sourcefn process(&mut self, src: &dyn ToInputArray, dst: &mut Vector<Mat>) -> Result<()>
fn process(&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
sourcefn calculate_shift(
&mut self,
img0: &dyn ToInputArray,
img1: &dyn ToInputArray
) -> Result<Point>
fn calculate_shift(
&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
sourcefn shift_mat(
&mut self,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
shift: Point
) -> Result<()>
fn shift_mat(
&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
sourcefn compute_bitmaps(
&mut self,
img: &dyn ToInputArray,
tb: &mut dyn ToOutputArray,
eb: &mut dyn ToOutputArray
) -> Result<()>
fn compute_bitmaps(
&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