Skip to content

FarnebackOpticalFlow_create

Motion and trackingfunctionOpenCV 5.0.0
import { FarnebackOpticalFlow_create } from '@banou/opencv-wasm'

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

ARGUMENTSnumLevels, pyrScale, fastPyramids, winSize
FUNCTIONFarnebackOpticalFlow_create
RETURN TYPEFarnebackOpticalFlow | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Create an owned FarnebackOpticalFlow instance with the supplied configuration.

Class computing a dense optical flow using the Gunnar Farneback's algorithm.

FarnebackOpticalFlow_create(numLevels: number, pyrScale: number, fastPyramids: boolean, winSize: number, numIters: number, polyN: number, polySigma: number, flags: number): FarnebackOpticalFlow | null;
9 available overloads
FarnebackOpticalFlow_create(): FarnebackOpticalFlow | null;
FarnebackOpticalFlow_create(numLevels: number): FarnebackOpticalFlow | null;
FarnebackOpticalFlow_create(numLevels: number, pyrScale: number): FarnebackOpticalFlow | null;
FarnebackOpticalFlow_create(numLevels: number, pyrScale: number, fastPyramids: boolean): FarnebackOpticalFlow | null;
FarnebackOpticalFlow_create(numLevels: number, pyrScale: number, fastPyramids: boolean, winSize: number): FarnebackOpticalFlow | null;
FarnebackOpticalFlow_create(numLevels: number, pyrScale: number, fastPyramids: boolean, winSize: number, numIters: number): FarnebackOpticalFlow | null;
FarnebackOpticalFlow_create(numLevels: number, pyrScale: number, fastPyramids: boolean, winSize: number, numIters: number, polyN: number): FarnebackOpticalFlow | null;
FarnebackOpticalFlow_create(numLevels: number, pyrScale: number, fastPyramids: boolean, winSize: number, numIters: number, polyN: number, polySigma: number): FarnebackOpticalFlow | null;
FarnebackOpticalFlow_create(numLevels: number, pyrScale: number, fastPyramids: boolean, winSize: number, numIters: number, polyN: number, polySigma: number, flags: number): FarnebackOpticalFlow | null;
numLevels

num levels argument (number).

pyrScale

pyr scale argument (number).

fastPyramids

fast pyramids argument (boolean).

winSize

win size argument (number).

numIters

num iters argument (number).

polyN

poly n argument (number).

polySigma

poly sigma argument (number).

flags

flags argument (number).

Returns

The FarnebackOpticalFlow | 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.