Difference between revisions of "Function:OpticalFlowPyrLKDense"
From CUVI Wiki
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Computes Dense Optical Flow between each pixel of two images using pyramidal Lucas-Kanade method. | Computes Dense Optical Flow between each pixel of two images using pyramidal Lucas-Kanade method. | ||
===Function=== | ====Function==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus opticalFlowPyrLKDense(const CuviImage& previous, | CuviStatus opticalFlowPyrLKDense(const CuviImage& previous, | ||
Revision as of 14:16, 18 October 2022
Computes Dense Optical Flow between each pixel of two images using pyramidal Lucas-Kanade method.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| previous | CuviImage& | The first image whose features are to be tracked |
| next | CuviImage& | Second image, in which to look for features of first image |
| flowX | Cuvi32f* | Horizontal optical flow |
| flowY | Cuvi32f* | Vertical optical flow |
| criteria | const CuviFeaturesCriteria | A structure containing various parameters that affect optical flow calculation |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 2x 8uC1 | 2x Cuvi32f* |
Samples
Example
|



