OpenCV  4.10.0
Open Source Computer Vision
Loading...
Searching...
No Matches
Classes | Functions
Fourier descriptors

Detailed Description

Classes

class  cv::ximgproc::ContourFitting
 Class for ContourFitting algorithms. ContourFitting match two contours \( z_a \) and \( z_b \) minimizing distance. More...
 

Functions

void cv::ximgproc::contourSampling (InputArray src, OutputArray out, int nbElt)
 Contour sampling .
 
Ptr< ContourFittingcv::ximgproc::createContourFitting (int ctr=1024, int fd=16)
 create ContourFitting algorithm object
 
void cv::ximgproc::fourierDescriptor (InputArray src, OutputArray dst, int nbElt=-1, int nbFD=-1)
 Fourier descriptors for planed closed curves.
 
void cv::ximgproc::transformFD (InputArray src, InputArray t, OutputArray dst, bool fdContour=true)
 transform a contour
 

Function Documentation

◆ contourSampling()

void cv::ximgproc::contourSampling ( InputArray  src,
OutputArray  out,
int  nbElt 
)
Python:
cv.ximgproc.contourSampling(src, nbElt[, out]) -> out

#include <opencv2/ximgproc/fourier_descriptors.hpp>

Contour sampling .

Parameters
srccontour type vector<Point> , vector<Point2f> or vector<Point2d>
outMat of type CV_64FC2 and nbElt rows
nbEltnumber of points in out contour

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

create ContourFitting algorithm object

Parameters
ctrnumber of Fourier descriptors equal to number of contour points after resampling.
fdContour defining second shape (Target).

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

Fourier descriptors for planed closed curves.

For more details about this implementation, please see [219]

Parameters
srccontour type vector<Point> , vector<Point2f> or vector<Point2d>
dstMat of type CV_64FC2 and nbElt rows A VERIFIER
nbEltnumber of rows in dst or getOptimalDFTSize rows if nbElt=-1
nbFDnumber of FD return in dst 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>

transform a contour

Parameters
srccontour or Fourier Descriptors if fd is true
ttransform Mat given by estimateTransformation
dstMat of type CV_64FC2 and nbElt rows
fdContourtrue src are Fourier Descriptors. fdContour false src is a contour