Struct opencv::ximgproc::ContourFitting [−][src]
pub struct ContourFitting { /* fields omitted */ }
Expand description
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
Implementations
Fit two closed curves using fourier descriptors. More details in PersoonFu1977 and BergerRaghunathan1998
Parameters
- ctr: number of Fourier descriptors equal to number of contour points after resampling.
- fd: Contour defining second shape (Target).
C++ default parameters
- ctr: 1024
- fd: 16
Trait Implementations
Stores algorithm parameters in a file storage
simplified API for language bindings Stores algorithm parameters in a file storage Read more
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more
Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more
fn estimate_transformation(
&mut self,
src: &dyn ToInputArray,
dst: &dyn ToInputArray,
alpha_phi_st: &mut dyn ToOutputArray,
dist: &mut f64,
fd_contour: bool
) -> Result<()>
fn estimate_transformation(
&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 Read more
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<()>
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<()>
Fit two closed curves using fourier descriptors. More details in PersoonFu1977 and BergerRaghunathan1998 Read more
set number of Fourier descriptors used in estimateTransformation Read more
set number of Fourier descriptors when estimateTransformation used vector
Returns Read more
Returns Read more
Performs the conversion.