Skip to content

SparsePyrLKOpticalFlow_create

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

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

ARGUMENTSwinSize, maxLevel, crit, flags
FUNCTIONSparsePyrLKOpticalFlow_create
RETURN TYPESparsePyrLKOpticalFlow | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Create an owned SparsePyrLKOpticalFlow instance with the supplied configuration.

Class used for calculating a sparse optical flow.

SparsePyrLKOpticalFlow_create(winSize: Size, maxLevel: number, crit: TermCriteria, flags: number, minEigThreshold: number): SparsePyrLKOpticalFlow | null;
6 available overloads
SparsePyrLKOpticalFlow_create(): SparsePyrLKOpticalFlow | null;
SparsePyrLKOpticalFlow_create(winSize: Size): SparsePyrLKOpticalFlow | null;
SparsePyrLKOpticalFlow_create(winSize: Size, maxLevel: number): SparsePyrLKOpticalFlow | null;
SparsePyrLKOpticalFlow_create(winSize: Size, maxLevel: number, crit: TermCriteria): SparsePyrLKOpticalFlow | null;
SparsePyrLKOpticalFlow_create(winSize: Size, maxLevel: number, crit: TermCriteria, flags: number): SparsePyrLKOpticalFlow | null;
SparsePyrLKOpticalFlow_create(winSize: Size, maxLevel: number, crit: TermCriteria, flags: number, minEigThreshold: number): SparsePyrLKOpticalFlow | null;
winSize

win size argument (Size).

maxLevel

max level argument (number).

crit

crit argument (TermCriteria).

flags

flags argument (number).

minEigThreshold

min eig threshold argument (number).

Returns

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