Difference between revisions of "Function:OpticalFlowHS"
From CUVI Wiki
| Line 95: | Line 95: | ||
//Calculates flow of each image pixel in two frames using Horn–Schunck method | //Calculates flow of each image pixel in two frames using Horn–Schunck method | ||
cuvi::computerVision::opticalFlowHS(gimg1,gimg2,u,v); | cuvi::computerVision::opticalFlowHS(gimg1,gimg2,u,v,false); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 07:45, 19 April 2013
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| previous | const CuviImage& | The first image whose features are to be tracked |
| next | const CuviImage& | Second image, in which to look for features of first image |
| flowX | Cuvi32f* | Horizontal velocity vector |
| flowY | Cuvi32f* | Vertical velocity vector |
| usePrevious | bool | use previous (input) velocity field |
| lambda | const Cuvi32f | Lagrangian multiplier |
| iterations | const Cuvi32s | Maximum number of iterations |
| stream | CuviStream* | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 32fC1 |
Sample
Example
|
