buildOpticalFlowPyramid
import { buildOpticalFlowPyramid } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.
buildOpticalFlowPyramid(img: Mat, pyramid: MatVector, winSize: Size, maxLevel: number, withDerivatives: boolean, pyrBorder: number, derivBorder: number, tryReuseInputImage: boolean): number;5 available overloads
buildOpticalFlowPyramid(img: Mat, pyramid: MatVector, winSize: Size, maxLevel: number): number;buildOpticalFlowPyramid(img: Mat, pyramid: MatVector, winSize: Size, maxLevel: number, withDerivatives: boolean): number;buildOpticalFlowPyramid(img: Mat, pyramid: MatVector, winSize: Size, maxLevel: number, withDerivatives: boolean, pyrBorder: number): number;buildOpticalFlowPyramid(img: Mat, pyramid: MatVector, winSize: Size, maxLevel: number, withDerivatives: boolean, pyrBorder: number, derivBorder: number): number;buildOpticalFlowPyramid(img: Mat, pyramid: MatVector, winSize: Size, maxLevel: number, withDerivatives: boolean, pyrBorder: number, derivBorder: number, tryReuseInputImage: boolean): number;img8-bit input image.
pyramidOutput destination, filled by the native operation. output pyramid.
winSizewindow size of optical flow algorithm. Must be not less than winSize argument of calcOpticalFlowPyrLK. It is needed to calculate required padding for pyramid levels.
maxLevel0-based maximal pyramid level number.
withDerivativesset to precompute gradients for the every pyramid level. If pyramid is constructed without the gradients then calcOpticalFlowPyrLK will calculate them internally.
pyrBorderthe border mode for pyramid layers.
derivBorderthe border mode for gradients.
tryReuseInputImageput ROI of input image into the pyramid if possible. You can pass false to force data copying.
number of levels in constructed pyramid. Can be less than maxLevel.
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.