Table of Contents

Method FourierDescriptor

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FourierDescriptor(InputArray, OutputArray, int, int)

Fourier descriptors for planar closed curves.

public static void FourierDescriptor(InputArray src, OutputArray dst, int nbElt = -1, int nbFD = -1)

Parameters

src InputArray

contour type vector<Point>, vector<Point2f> or vector<Point2d>.

dst OutputArray

Mat of type CV_64FC2 and nbElt rows.

nbElt int

number of rows in dst, or getOptimalDFTSize rows if nbElt=-1.

nbFD int

number of FD returned in dst; dst = [FD(1...nbFD/2) FD(nbFD/2-nbElt+1...:nbElt)].