ximgproc_fourierDescriptor
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
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;srccontour type vector<Point> , vector<Point2f> or vector<Point2d>
dstOutput destination, filled by the native operation. Mat 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)]
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.