Skip to content

ximgproc_SparseMatchInterpolator

Extended image processingclassOpenCV 5.0.0
import { ximgproc_SparseMatchInterpolator } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSximgproc_SparseMatchInterpolator
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
Returns

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_image

first of the two matched images, 8-bit single-channel or three-channel.

from_points

points of the from_image for which there are correspondences in the to_image (Point2f vector or Mat of depth CV_32F)

to_image

second of the two matched images, 8-bit single-channel or three-channel.

to_points

points in the to_image corresponding to from_points (Point2f vector or Mat of depth CV_32F)

dense_flow

Output 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.