Skip to content

ximgproc_fourierDescriptor

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_fourierDescriptor } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc, dst, nbElt, nbFD
FUNCTIONximgproc_fourierDescriptor
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Fourier descriptors for planed closed curves

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

ximgproc_fourierDescriptor(src: Mat, dst: Mat, nbElt: number, nbFD: number): void;
3 available overloads
ximgproc_fourierDescriptor(src: Mat, dst: Mat): void;
ximgproc_fourierDescriptor(src: Mat, dst: Mat, nbElt: number): void;
ximgproc_fourierDescriptor(src: Mat, dst: Mat, nbElt: number, nbFD: number): void;
src

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

dst

Output destination, filled by the native operation. Mat of type CV_64FC2 and nbElt rows A VERIFIER

nbElt

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

nbFD

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

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.