OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
傅里叶描述子

详细描述

类  cv::ximgproc::ContourFitting
 ContourFitting 算法类。 ContourFitting 匹配两个轮廓 \( z_a \) 和 \( z_b \) ,最小化距离。 更多...
 

函数

void cv::ximgproc::contourSampling (InputArray src, OutputArray out, int nbElt)
 轮廓采样。
 
Ptr< ContourFittingcv::ximgproc::createContourFitting (int ctr=1024, int fd=16)
 创建 ContourFitting 算法对象
 
void cv::ximgproc::fourierDescriptor (InputArray src, OutputArray dst, int nbElt=-1, int nbFD=-1)
 平面闭合曲线的傅里叶描述子。
 
void cv::ximgproc::transformFD (InputArray src, InputArray t, OutputArray dst, bool fdContour=true)
 变换轮廓
 

函数文档

◆ contourSampling()

void cv::ximgproc::contourSampling ( InputArray src,
OutputArray 输出3D仿射变换矩阵,尺寸为\(3 \times 4\),形式如下,
int nbElt )
Python
cv.ximgproc.contourSampling(src, nbElt[, out]) -> 输出3D仿射变换矩阵,尺寸为\(3 \times 4\),形式如下

#include <opencv2/ximgproc/fourier_descriptors.hpp>

轮廓采样。

参数
src轮廓类型 vector<Point> , vector<Point2f> 或 vector<Point2d>
输出3D仿射变换矩阵,尺寸为\(3 \times 4\),形式如下CV_64FC2 类型的 Mat,具有 nbElt 行
nbEltout 轮廓中的点数

◆ createContourFitting()

Ptr< ContourFitting > cv::ximgproc::createContourFitting ( int ctr = 1024,
int fd = 16 )
Python
cv.ximgproc.createContourFitting([, ctr[, fd]]) -> retval

#include <opencv2/ximgproc/fourier_descriptors.hpp>

创建 ContourFitting 算法对象

参数
ctr傅里叶描述子的数量等于重采样后轮廓点的数量。
fd定义第二个形状(目标)的轮廓。

◆ fourierDescriptor()

void cv::ximgproc::fourierDescriptor ( InputArray src,
OutputArray dst,
int nbElt = -1,
int nbFD = -1 )
Python
cv.ximgproc.fourierDescriptor(src[, dst[, nbElt[, nbFD]]]) -> dst

#include <opencv2/ximgproc/fourier_descriptors.hpp>

平面闭合曲线的傅里叶描述子。

有关此实现的更多详细信息,请参阅 [223]

参数
src轮廓类型 vector<Point> , vector<Point2f> 或 vector<Point2d>
dstCV_64FC2 类型的 Mat,具有 nbElt 行,待验证
nbEltdst 中的行数,如果 nbElt=-1,则为 getOptimalDFTSize 行
nbFD在 dst 中返回的 FD 数量 dst = [FD(1...nbFD/2) FD(nbFD/2-nbElt+1...:nbElt)]

◆ transformFD()

void cv::ximgproc::transformFD ( InputArray src,
InputArray t,
OutputArray dst,
bool fdContour = true )
Python
cv.ximgproc.transformFD(src, t[, dst[, fdContour]]) -> dst

#include <opencv2/ximgproc/fourier_descriptors.hpp>

变换轮廓

参数
src如果 fd 为 true,则为轮廓或傅里叶描述子
t由 estimateTransformation 给出的变换 Mat
dstCV_64FC2 类型的 Mat,具有 nbElt 行
fdContourtrue src 是傅里叶描述子。fdContour false src 是轮廓