Table of Contents

Class SparseMatchInterpolator

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

Main interface for all filters, that take sparse matches as an input and produce a dense per-pixel matching (optical flow) as an output.

public abstract class SparseMatchInterpolator : Algorithm, IDisposable
Inheritance
SparseMatchInterpolator
Implements
Derived
Inherited Members

Constructors

SparseMatchInterpolator(nint, nint, Action<nint>)

Constructor for the factory pattern (cv::Ptr<T>* + raw T*).

protected SparseMatchInterpolator(nint smartPtr, nint rawPtr, Action<nint> release)

Parameters

smartPtr nint
rawPtr nint
release Action<nint>

Methods

Interpolate(InputArray, InputArray, InputArray, InputArray, OutputArray)

Interpolate input sparse matches.

public virtual void Interpolate(InputArray fromImage, InputArray fromPoints, InputArray toImage, InputArray toPoints, OutputArray denseFlow)

Parameters

fromImage InputArray

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

fromPoints InputArray

points of the fromImage for which there are correspondences in the toImage (Point2f vector or Mat of depth CV_32F).

toImage InputArray

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

toPoints InputArray

points in the toImage corresponding to fromPoints (Point2f vector or Mat of depth CV_32F).

denseFlow OutputArray

output dense matching (two-channel CV_32F image).