Class SparseOpticalFlowExtensions
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
ISparseOpticalFlowThe sparse optical flow
prevImg
IInputArrayFirst input image.
nextImg
IInputArraySecond input image of the same size and the same type as prevImg.
prevPts
IInputArrayVector of 2D points for which the flow needs to be found.
nextPts
IInputOutputArrayOutput vector of 2D points containing the calculated new positions of input features in the second image.
status
IOutputArrayOutput 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
IOutputArrayOptional output vector that contains error response for each point (inverse confidence).