Start » Filter Reference » OpenCV » Motion Analysis and Object Tracking » cvSparsePyrLKOpticalFlow

cvSparsePyrLKOpticalFlow


Module: OpenCV

Calculate an optical flow for a sparse feature set using the iterative Lucas-Kanade method with pyramids.

Name Type Description
Input value
inPreviousImage Image
Input value
inNextImage Image
Input value
inPreviousPoints Point2DArray
Input value
inMaxCount Integer*
Input value
inMaxEps Real*
Input value
inMaxLevel Integer*
Input value
inMinEdgeThreshold Double*
Input value
inWindowSize Size*
Output value
outNextPoints Point2DArray
Output value
outStatus IntegerArray

Requirements

For input inPreviousImage only pixel formats are supported: 1⨯uint8.

For input inNextImage only pixel formats are supported: 1⨯uint8.

Read more about pixel formats in Image documentation.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Not supported inNextImage pixel format in AvsFilter_cvSparsePyrLKOpticalFlow. Supported formats: 1xUInt8.
DomainError Not supported inPreviousImage pixel format in AvsFilter_cvSparsePyrLKOpticalFlow. Supported formats: 1xUInt8.

Complexity Level

This filter is available on Basic Complexity Level.