SparsePyrLKOpticalFlow Constructor |
http://www.emgu.com
Create a SparsePyrLKOpticalFlow object
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic SparsePyrLKOpticalFlow(
Size winSize,
int maxLevel,
MCvTermCriteria crit,
LKFlowFlag flags,
double minEigThreshold
)
Public Sub New (
winSize As Size,
maxLevel As Integer,
crit As MCvTermCriteria,
flags As LKFlowFlag,
minEigThreshold As Double
)
public:
SparsePyrLKOpticalFlow(
Size winSize,
int maxLevel,
MCvTermCriteria crit,
LKFlowFlag flags,
double minEigThreshold
)
new :
winSize : Size *
maxLevel : int *
crit : MCvTermCriteria *
flags : LKFlowFlag *
minEigThreshold : float -> SparsePyrLKOpticalFlow
Parameters
- winSize
- Type: System.DrawingSize
size of the search window at each pyramid level. - maxLevel
- Type: SystemInt32
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
- Type: Emgu.CV.StructureMCvTermCriteria
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
- Type: Emgu.CV.CvEnumLKFlowFlag
operation flags - minEigThreshold
- Type: SystemDouble
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.
See Also