Start » Filter Reference » OpenCV » Motion Analysis and Object Tracking » cvSparsePyrLKOpticalFlow
Module: | OpenCV |
---|
Calculate an optical flow for a sparse feature set using the iterative Lucas-Kanade method with pyramids.
Name | Type | Description | |
---|---|---|---|
inPreviousImage | Image | ||
inNextImage | Image | ||
inPreviousPoints | Point2DArray | ||
inMaxCount | Integer* | ||
inMaxEps | Real* | ||
inMaxLevel | Integer* | ||
inMinEdgeThreshold | Double* | ||
inWindowSize | Size* | ||
outNextPoints | Point2DArray | ||
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.