Skip to content

ximgproc_createContourFitting

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

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

ARGUMENTSctr, fd
FUNCTIONximgproc_createContourFitting
RETURN TYPEximgproc_ContourFitting | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

create ContourFitting algorithm object

ximgproc_createContourFitting(ctr: number, fd: number): ximgproc_ContourFitting | null;
3 available overloads
ximgproc_createContourFitting(): ximgproc_ContourFitting | null;
ximgproc_createContourFitting(ctr: number): ximgproc_ContourFitting | null;
ximgproc_createContourFitting(ctr: number, fd: number): ximgproc_ContourFitting | null;
ctr

number of Fourier descriptors equal to number of contour points after resampling.

fd

Contour defining second shape (Target).

Returns

The ximgproc_ContourFitting | null result.

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.