Class for ContourFitting algorithms. ContourFitting match two contours $ and $ minimizing distance.
More...
|
void | estimateTransformation (Mat src, Mat dst, Mat alphaPhiST, double[] dist) |
| Fit two closed curves using fourier descriptors. More details in [PersoonFu1977] and [BergerRaghunathan1998].
|
|
void | estimateTransformation (Mat src, Mat dst, Mat alphaPhiST, double[] dist, bool fdContour) |
| Fit two closed curves using fourier descriptors. More details in [PersoonFu1977] and [BergerRaghunathan1998].
|
|
int | getCtrSize () |
|
int | getFDSize () |
|
void | setCtrSize (int n) |
| set number of Fourier descriptors used in estimateTransformation
|
|
void | setFDSize (int n) |
| set number of Fourier descriptors when estimateTransformation used vector<Point>
|
|
virtual void | clear () |
| Clears the algorithm state.
|
|
virtual bool | empty () |
| Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
|
|
virtual string | getDefaultName () |
|
IntPtr | getNativeObjAddr () |
|
void | save (string filename) |
|
void | Dispose () |
|
void | ThrowIfDisposed () |
|
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
◆ __fromPtr__()
static new ContourFitting OpenCVForUnity.XimgprocModule.ContourFitting.__fromPtr__ |
( |
IntPtr | addr | ) |
|
|
static |
◆ Dispose()
override void OpenCVForUnity.XimgprocModule.ContourFitting.Dispose |
( |
bool | disposing | ) |
|
|
protectedvirtual |
◆ estimateTransformation() [1/2]
void OpenCVForUnity.XimgprocModule.ContourFitting.estimateTransformation |
( |
Mat | src, |
|
|
Mat | dst, |
|
|
Mat | alphaPhiST, |
|
|
double[] | dist ) |
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. |
◆ estimateTransformation() [2/2]
void OpenCVForUnity.XimgprocModule.ContourFitting.estimateTransformation |
( |
Mat | src, |
|
|
Mat | dst, |
|
|
Mat | alphaPhiST, |
|
|
double[] | dist, |
|
|
bool | fdContour ) |
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. |
◆ getCtrSize()
int OpenCVForUnity.XimgprocModule.ContourFitting.getCtrSize |
( |
| ) |
|
- Returns
- number of fourier descriptors
◆ getFDSize()
int OpenCVForUnity.XimgprocModule.ContourFitting.getFDSize |
( |
| ) |
|
- Returns
- number of fourier descriptors used for optimal curve matching
◆ setCtrSize()
void OpenCVForUnity.XimgprocModule.ContourFitting.setCtrSize |
( |
int | n | ) |
|
set number of Fourier descriptors used in estimateTransformation
- Parameters
-
n | number of Fourier descriptors equal to number of contour points after resampling. |
◆ setFDSize()
void OpenCVForUnity.XimgprocModule.ContourFitting.setFDSize |
( |
int | n | ) |
|
set number of Fourier descriptors when estimateTransformation used vector<Point>
- Parameters
-
n | number of fourier descriptors used for optimal curve matching. |
The documentation for this class was generated from the following file: