Difference between revisions of "Function:OpticalFlowPyrLKDense"
From CUVI Wiki
(Created page with "__NOTOC__ Computes Dense Optical Flow between each pixel of two images using pyramidal Lucas-Kanade method. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="...") |
|||
| Line 90: | Line 90: | ||
gimg2->upload(img2->imageData,img2->widthStep); | gimg2->upload(img2->imageData,img2->widthStep); | ||
Cuvi32f* flowX = new | Cuvi32f* flowX = new Cuvi32f[width * height]; | ||
Cuvi32f* flowY = new | Cuvi32f* flowY = new Cuvi32f[width * height]; | ||
//tracking criteria | //tracking criteria | ||
Revision as of 07:19, 14 May 2012
Computes Dense Optical Flow between each pixel of two images using pyramidal Lucas-Kanade method.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| previousImage | CuviImage* | The first image whose features are to be tracked |
| nextImage | CuviImage* | Second image, in which to look for features of first image |
| flowX | Cuvi32f* | Horizontal optical flow |
| flowY | Cuvi32f* | Vertical optical flow |
| criteria | CuviFeaturesCriteria | A structure containing various parameters that affect optical flow calculation |
| stream | CuviStream* | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 2x 8uC1 | 2x Cuvi32f* |
Samples
Example
|



