Class SparsePyrLKOpticalFlow
The class can calculate an optical flow for a sparse feature set using the iterative Lucas-Kanade method with pyramids.
public class SparsePyrLKOpticalFlow : UnmanagedObject, IDisposable, ISparseOpticalFlow, IAlgorithm
- Inheritance
-
SparsePyrLKOpticalFlow
- Implements
- Inherited Members
- Extension Methods
Constructors
SparsePyrLKOpticalFlow(Size, int, MCvTermCriteria, LKFlowFlag, double)
Create a SparsePyrLKOpticalFlow object
public SparsePyrLKOpticalFlow(Size winSize, int maxLevel, MCvTermCriteria crit, LKFlowFlag flags, double minEigThreshold)
Parameters
winSize
Sizesize of the search window at each pyramid level.
maxLevel
int0-based maximal pyramid level number; if set to 0, pyramids are not used (single level), if set to 1, two levels are used, and so on; if pyramids are passed to input then algorithm will use as many levels as pyramids have but no more than maxLevel.
crit
MCvTermCriteriaspecifying the termination criteria of the iterative search algorithm (after the specified maximum number of iterations criteria.maxCount or when the search window moves by less than criteria.epsilon.
flags
LKFlowFlagoperation flags
minEigThreshold
doublethe algorithm calculates the minimum eigen value of a 2x2 normal matrix of optical flow equations, divided by number of pixels in a window; if this value is less than minEigThreshold, then a corresponding feature is filtered out and its flow is not processed, so it allows to remove bad points and get a performance boost.
Properties
AlgorithmPtr
Return the pointer to the algorithm object
public nint AlgorithmPtr { get; }
Property Value
SparseOpticalFlowPtr
Pointer to the unmanaged SparseOpticalFlow object
public nint SparseOpticalFlowPtr { get; }
Property Value
Methods
DisposeObject()
Release the unmanaged resources
protected override void DisposeObject()