Table of Contents

Class SparsePyrLKOpticalFlow

Namespace
Emgu.CV
Assembly
Emgu.CV.dll

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 Size

size of the search window at each pyramid level.

maxLevel int

0-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 MCvTermCriteria

specifying 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 LKFlowFlag

operation flags

minEigThreshold double

the 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

nint

SparseOpticalFlowPtr

Pointer to the unmanaged SparseOpticalFlow object

public nint SparseOpticalFlowPtr { get; }

Property Value

nint

Methods

DisposeObject()

Release the unmanaged resources

protected override void DisposeObject()