ximgproc_SparseMatchInterpolator
import { ximgproc_SparseMatchInterpolator } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.
Main interface for all filters, that take sparse matches as an input and produce a dense per-pixel matching (optical flow) as an output.
Constructors and members
clone
Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.
clone(): this;The this result.
interpolate
Interpolate input sparse matches.
interpolate(from_image: Mat, from_points: Mat, to_image: Mat, to_points: Mat, dense_flow: Mat): void;from_imagefirst of the two matched images, 8-bit single-channel or three-channel.
from_pointspoints of the from_image for which there are correspondences in the to_image (Point2f vector or Mat of depth CV_32F)
to_imagesecond of the two matched images, 8-bit single-channel or three-channel.
to_pointspoints in the to_image corresponding to from_points (Point2f vector or Mat of depth CV_32F)
dense_flowOutput destination, filled by the native operation. output dense matching (two-channel CV_32F image)
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.