ContourFitting
Class for ContourFitting algorithms. ContourFitting match two contours
Member of Ximgproc
-
Declaration
Objective-C
- (int)getCtrSize;Swift
func getCtrSize() -> Int32Return Value
number of fourier descriptors
-
Declaration
Objective-C
- (int)getFDSize;Swift
func getFDSize() -> Int32Return Value
number of fourier descriptors used for optimal curve matching
-
Fit two closed curves using fourier descriptors. More details in CITE: PersoonFu1977 and CITE: BergerRaghunathan1998
Declaration
Parameters
srcContour defining first shape.
dstContour defining second shape (Target).
alphaPhiST:
\alpha=alphaPhiST(0,0),\phi=alphaPhiST(0,1) (in radian), s=alphaPhiST(0,2), Tx=alphaPhiST(0,3), Ty=alphaPhiST(0,4) rotation centerdistdistance between src and dst after matching.
fdContourfalse then src and dst are contours and true src and dst are fourier descriptors.
-
Fit two closed curves using fourier descriptors. More details in CITE: PersoonFu1977 and CITE: BergerRaghunathan1998
Declaration
Parameters
srcContour defining first shape.
dstContour defining second shape (Target).
alphaPhiST:
\alpha=alphaPhiST(0,0),\phi=alphaPhiST(0,1) (in radian), s=alphaPhiST(0,2), Tx=alphaPhiST(0,3), Ty=alphaPhiST(0,4) rotation centerdistdistance between src and dst after matching.
-
set number of Fourier descriptors used in estimateTransformation
Declaration
Objective-C
- (void)setCtrSize:(int)n;Swift
func setCtrSize(n: Int32)Parameters
nnumber of Fourier descriptors equal to number of contour points after resampling.
-
set number of Fourier descriptors when estimateTransformation used vector
Declaration
Objective-C
- (void)setFDSize:(int)n;Swift
func setFDSize(n: Int32)Parameters
nnumber of fourier descriptors used for optimal curve matching.
View on GitHub
ContourFitting Class Reference