optflow_createOptFlow_DeepFlow
import { optflow_createOptFlow_DeepFlow } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSSee signature below
FUNCTIONoptflow_createOptFlow_DeepFlow
RETURN TYPEDenseOpticalFlow | null
DeepFlow optical flow algorithm implementation.
The class implements the DeepFlow optical flow algorithm described in [Weinzaepfel2013] . See also http://lear.inrialpes.fr/src/deepmatching/ . Parameters - class fields - that may be modified after creating a class instance:
- member float alpha Smoothness assumption weight
- member float delta Color constancy assumption weight
- member float gamma Gradient constancy weight
- member float sigma Gaussian smoothing parameter
- member int minSize Minimal dimension of an image in the pyramid (next, smaller images in the pyramid are generated until one of the dimensions reaches this size)
- member float downscaleFactor Scaling factor in the image pyramid (must be < 1)
- member int fixedPointIterations How many iterations on each level of the pyramid
- member int sorIterations Iterations of Succesive Over-Relaxation (solver)
- member float omega Relaxation factor in SOR
optflow_createOptFlow_DeepFlow(): DenseOpticalFlow | null;Returns
The DenseOpticalFlow | 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.