OpenCV453
公開メンバ関数 | 全メンバ一覧
cv::ximgproc::ContourFitting クラス

Class for ContourFitting algorithms. ContourFitting match two contours $ z_a $ and $ z_b $ 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 ()
 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
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
 

その他の継承メンバ

- 基底クラス cv::Algorithm に属する継承静的公開メンバ関数
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 [詳解]
 
- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

詳解

Class for ContourFitting algorithms. ContourFitting match two contours $ z_a $ and $ z_b $ minimizing distance

\[ d(z_a,z_b)=\sum (a_n - s b_n e^{j(n \alpha +\phi )})^2 \]

where $ a_n $ and $ b_n $ are Fourier descriptors of $ z_a $ and $ z_b $ and s is a scaling factor and $ \phi $ is angle rotation and $ \alpha $ is starting point factor adjustement

構築子と解体子

◆ 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]

引数
ctrnumber of Fourier descriptors equal to number of contour points after resampling.
fdContour 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]

引数
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 center
distdistance between src and dst after matching.
fdContourfalse 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]

引数
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 center
distdistance between src and dst after matching.
fdContourfalse 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

引数
nnumber 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>

引数
nnumber of fourier descriptors used for optimal curve matching.

このクラス詳解は次のファイルから抽出されました: