Click or drag to resize

SparseOpticalFlowExtensionsCalc Method
Calculates a sparse optical flow.

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


Type: Emgu.CVISparseOpticalFlow
The sparse optical flow
Type: Emgu.CVIInputArray
First input image.
Type: Emgu.CVIInputArray
Second input image of the same size and the same type as prevImg.
Type: Emgu.CVIInputArray
Vector of 2D points for which the flow needs to be found.
Type: Emgu.CVIInputOutputArray
Output vector of 2D points containing the calculated new positions of input features in the second image.
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