[−][src]Struct opencv::ximgproc::ContourFitting
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
impl ContourFitting
[src]
pub fn as_raw_ContourFitting(&self) -> *const c_void
[src]
pub fn as_raw_mut_ContourFitting(&mut self) -> *mut c_void
[src]
impl ContourFitting
[src]
pub fn new(ctr: i32, fd: i32) -> Result<ContourFitting>
[src]
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
impl AlgorithmTrait for ContourFitting
[src]
pub fn as_raw_Algorithm(&self) -> *const c_void
[src]
pub fn as_raw_mut_Algorithm(&mut self) -> *mut c_void
[src]
pub fn clear(&mut self) -> Result<()>
[src]
pub fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
pub fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
[src]
pub fn read(&mut self, fn_: &FileNode) -> Result<()>
[src]
pub fn empty(&self) -> Result<bool>
[src]
pub fn save(&self, filename: &str) -> Result<()>
[src]
pub fn get_default_name(&self) -> Result<String>
[src]
impl Boxed for ContourFitting
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl ContourFittingTrait for ContourFitting
[src]
pub fn as_raw_ContourFitting(&self) -> *const c_void
[src]
pub fn as_raw_mut_ContourFitting(&mut self) -> *mut c_void
[src]
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<()>
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<()>
pub fn set_ctr_size(&mut self, n: i32) -> Result<()>
[src]
pub fn set_fd_size(&mut self, n: i32) -> Result<()>
[src]
pub fn get_ctr_size(&mut self) -> Result<i32>
[src]
pub fn get_fd_size(&mut self) -> Result<i32>
[src]
impl Drop for ContourFitting
[src]
impl Send for ContourFitting
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContourFitting
[src]
impl !Sync for ContourFitting
[src]
impl Unpin for ContourFitting
[src]
impl UnwindSafe for ContourFitting
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,