Table of Contents

Class SparseOpticalFlowExtensions

Namespace
Emgu.CV
Assembly
Emgu.CV.dll

Extension methods for ISparseOpticalFlow

public static class SparseOpticalFlowExtensions
Inheritance
SparseOpticalFlowExtensions
Inherited Members

Methods

Calc(ISparseOpticalFlow, IInputArray, IInputArray, IInputArray, IInputOutputArray, IOutputArray, IOutputArray)

Calculates a sparse optical flow.

public static void Calc(this ISparseOpticalFlow opticalFlow, IInputArray prevImg, IInputArray nextImg, IInputArray prevPts, IInputOutputArray nextPts, IOutputArray status, IOutputArray error = null)

Parameters

opticalFlow ISparseOpticalFlow

The sparse optical flow

prevImg IInputArray

First input image.

nextImg IInputArray

Second input image of the same size and the same type as prevImg.

prevPts IInputArray

Vector of 2D points for which the flow needs to be found.

nextPts IInputOutputArray

Output vector of 2D points containing the calculated new positions of input features in the second image.

status IOutputArray

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 IOutputArray

Optional output vector that contains error response for each point (inverse confidence).