Class for ContourFitting algorithms. ContourFitting match two contours
and
minimizing distance
[詳解]
#include <fourier_descriptors.hpp>
cv::Algorithmを継承しています。
|
| ContourFitting (int ctr=1024, int fd=16) |
| Fit two closed curves using fourier descriptors. More details in [PersoonFu1977] and [BergerRaghunathan1998] [詳解]
|
|
void | estimateTransformation (InputArray src, InputArray dst, OutputArray alphaPhiST, double *dist=0, bool fdContour=false) |
| Fit two closed curves using fourier descriptors. More details in [PersoonFu1977] and [BergerRaghunathan1998] [詳解]
|
|
CV_WRAP void | estimateTransformation (InputArray src, InputArray dst, OutputArray alphaPhiST, CV_OUT double &dist, bool fdContour=false) |
| Fit two closed curves using fourier descriptors. More details in [PersoonFu1977] and [BergerRaghunathan1998] [詳解]
|
|
CV_WRAP void | setCtrSize (int n) |
| set number of Fourier descriptors used in estimateTransformation [詳解]
|
|
CV_WRAP void | setFDSize (int n) |
| set number of Fourier descriptors when estimateTransformation used vector<Point> [詳解]
|
|
CV_WRAP int | getCtrSize () |
|
CV_WRAP int | getFDSize () |
|
virtual CV_WRAP void | clear () |
| Clears the algorithm state [詳解]
|
|
virtual void | write (FileStorage &fs) const |
| Stores algorithm parameters in a file storage [詳解]
|
|
CV_WRAP void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
| simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
|
|
virtual CV_WRAP void | read (const FileNode &fn) |
| Reads algorithm parameters from a file storage [詳解]
|
|
virtual CV_WRAP bool | empty () const |
| Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read [詳解]
|
|
virtual CV_WRAP void | save (const String &filename) const |
|
virtual CV_WRAP String | getDefaultName () const |
|
|
template<typename _Tp > |
static Ptr< _Tp > | read (const FileNode &fn) |
| Reads algorithm from the file node [詳解]
|
|
template<typename _Tp > |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
| Loads algorithm from the file [詳解]
|
|
template<typename _Tp > |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
| Loads algorithm from a String [詳解]
|
|
void | writeFormat (FileStorage &fs) const |
|
◆ ContourFitting()
cv::ximgproc::ContourFitting::ContourFitting |
( |
int |
ctr = 1024 , |
|
|
int |
fd = 16 |
|
) |
| |
|
inline |
Fit two closed curves using fourier descriptors. More details in [PersoonFu1977] and [BergerRaghunathan1998]
- 引数
-
ctr | number of Fourier descriptors equal to number of contour points after resampling. |
fd | Contour defining second shape (Target). |
◆ estimateTransformation() [1/2]
CV_WRAP void cv::ximgproc::ContourFitting::estimateTransformation |
( |
InputArray |
src, |
|
|
InputArray |
dst, |
|
|
OutputArray |
alphaPhiST, |
|
|
CV_OUT double & |
dist, |
|
|
bool |
fdContour = false |
|
) |
| |
Fit two closed curves using fourier descriptors. More details in [PersoonFu1977] and [BergerRaghunathan1998]
- 引数
-
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 cv::ximgproc::ContourFitting::estimateTransformation |
( |
InputArray |
src, |
|
|
InputArray |
dst, |
|
|
OutputArray |
alphaPhiST, |
|
|
double * |
dist = 0 , |
|
|
bool |
fdContour = false |
|
) |
| |
Fit two closed curves using fourier descriptors. More details in [PersoonFu1977] and [BergerRaghunathan1998]
- 引数
-
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()
CV_WRAP int cv::ximgproc::ContourFitting::getCtrSize |
( |
| ) |
|
|
inline |
- 戻り値
- number of fourier descriptors
◆ getFDSize()
CV_WRAP int cv::ximgproc::ContourFitting::getFDSize |
( |
| ) |
|
|
inline |
- 戻り値
- number of fourier descriptors used for optimal curve matching
◆ setCtrSize()
CV_WRAP void cv::ximgproc::ContourFitting::setCtrSize |
( |
int |
n | ) |
|
set number of Fourier descriptors used in estimateTransformation
- 引数
-
n | number of Fourier descriptors equal to number of contour points after resampling. |
◆ setFDSize()
CV_WRAP void cv::ximgproc::ContourFitting::setFDSize |
( |
int |
n | ) |
|
set number of Fourier descriptors when estimateTransformation used vector<Point>
- 引数
-
n | number of fourier descriptors used for optimal curve matching. |
このクラス詳解は次のファイルから抽出されました: