[][src]Struct opencv::ximgproc::ContourFitting

pub struct ContourFitting { /* fields omitted */ }

Class for ContourFitting algorithms. ContourFitting match two contours inline formula and inline formula minimizing distance block formula where inline formula and inline formula are Fourier descriptors of inline formula and inline formula and s is a scaling factor and inline formula is angle rotation and inline formula is starting point factor adjustement

Implementations

impl ContourFitting[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]

impl Boxed for ContourFitting[src]

impl ContourFittingTrait for ContourFitting[src]

impl Drop for ContourFitting[src]

impl Send for ContourFitting[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.