[−][src]Trait opencv::prelude::ContourFittingTrait
Class for ContourFitting algorithms. ContourFitting match two contours and minimizing distance where and are Fourier descriptors of and and s is a scaling factor and is angle rotation and is starting point factor adjustement
Required methods
pub fn as_raw_ContourFitting(&self) -> *const c_void
[src]
pub fn as_raw_mut_ContourFitting(&mut self) -> *mut c_void
[src]
Provided methods
pub fn estimate_transformation(
&mut self,
src: &dyn ToInputArray,
dst: &dyn ToInputArray,
alpha_phi_st: &mut dyn ToOutputArray,
dist: &mut f64,
fd_contour: bool
) -> Result<()>
[src]
&mut self,
src: &dyn ToInputArray,
dst: &dyn ToInputArray,
alpha_phi_st: &mut dyn ToOutputArray,
dist: &mut f64,
fd_contour: bool
) -> Result<()>
Fit two closed curves using fourier descriptors. More details in PersoonFu1977 and BergerRaghunathan1998
Parameters
- src: Contour defining first shape.
- dst: Contour defining second shape (Target).
- alphaPhiST: : =alphaPhiST(0,0), =alphaPhiST(0,1) (in radian), s=alphaPhiST(0,2), Tx=alphaPhiST(0,3), Ty=alphaPhiST(0,4) rotation center
- dist: distance between src and dst after matching.
- fdContour: false then src and dst are contours and true src and dst are fourier descriptors.
C++ default parameters
- dist: 0
- fd_contour: false
pub fn estimate_transformation_1(
&mut self,
src: &dyn ToInputArray,
dst: &dyn ToInputArray,
alpha_phi_st: &mut dyn ToOutputArray,
dist: &mut f64,
fd_contour: bool
) -> Result<()>
[src]
&mut self,
src: &dyn ToInputArray,
dst: &dyn ToInputArray,
alpha_phi_st: &mut dyn ToOutputArray,
dist: &mut f64,
fd_contour: bool
) -> Result<()>
Fit two closed curves using fourier descriptors. More details in PersoonFu1977 and BergerRaghunathan1998
Parameters
- src: Contour defining first shape.
- dst: Contour defining second shape (Target).
- alphaPhiST: : =alphaPhiST(0,0), =alphaPhiST(0,1) (in radian), s=alphaPhiST(0,2), Tx=alphaPhiST(0,3), Ty=alphaPhiST(0,4) rotation center
- dist: distance between src and dst after matching.
- fdContour: false then src and dst are contours and true src and dst are fourier descriptors.
C++ default parameters
- fd_contour: false
pub fn set_ctr_size(&mut self, n: i32) -> Result<()>
[src]
set number of Fourier descriptors used in estimateTransformation
Parameters
- n: number of Fourier descriptors equal to number of contour points after resampling.
pub fn set_fd_size(&mut self, n: i32) -> Result<()>
[src]
set number of Fourier descriptors when estimateTransformation used vector
Parameters
- n: number of fourier descriptors used for optimal curve matching.
pub fn get_ctr_size(&mut self) -> Result<i32>
[src]
Returns
number of fourier descriptors
pub fn get_fd_size(&mut self) -> Result<i32>
[src]
Returns
number of fourier descriptors used for optimal curve matching