Click or drag to resize

SparseOpticalFlowExtensionsCalc Method

http://www.emgu.com
Calculates a sparse optical flow.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static void Calc(
	this ISparseOpticalFlow opticalFlow,
	IInputArray prevImg,
	IInputArray nextImg,
	IInputArray prevPts,
	IInputOutputArray nextPts,
	IOutputArray status,
	IOutputArray error = null
)

Parameters

opticalFlow
Type: Emgu.CVISparseOpticalFlow
The sparse optical flow
prevImg
Type: Emgu.CVIInputArray
First input image.
nextImg
Type: Emgu.CVIInputArray
Second input image of the same size and the same type as prevImg.
prevPts
Type: Emgu.CVIInputArray
Vector of 2D points for which the flow needs to be found.
nextPts
Type: Emgu.CVIInputOutputArray
Output vector of 2D points containing the calculated new positions of input features in the second image.
status
Type: Emgu.CVIOutputArray
Output status vector. Each element of the vector is set to 1 if the flow for the corresponding features has been found.Otherwise, it is set to 0.
error (Optional)
Type: Emgu.CVIOutputArray
Optional output vector that contains error response for each point (inverse confidence).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISparseOpticalFlow. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also