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
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
fromImageInputArrayfirst of the two matched images, 8-bit single-channel or three-channel.
fromPointsInputArraypoints of the fromImage for which there are correspondences in the toImage (Point2f vector or Mat of depth CV_32F).
toImageInputArraysecond of the two matched images, 8-bit single-channel or three-channel.
toPointsInputArraypoints in the toImage corresponding to fromPoints (Point2f vector or Mat of depth CV_32F).
denseFlowOutputArrayoutput dense matching (two-channel CV_32F image).