Difference between revisions of "Function:Rotate"
From CUVI Wiki
Line 69: | Line 69: | ||
|- | |- | ||
|[[File:Rotatein.jpg|frame|Input Image]] | |[[File:Rotatein.jpg|frame|Input Image]] | ||
|[[File:RotateOutput_45deg.jpg|frame|Rotated at 45 degrees]] | |[[File:RotateOutput_45deg.jpg|frame|Rotated at 45 degrees about center]] | ||
|} | |} | ||
Line 87: | Line 87: | ||
//function call | //function call | ||
cuvi::geometryTransforms::rotate(gimg, gout, 45.0f | cuvi::geometryTransforms::rotate(gimg, gout, 45.0f); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} |
Revision as of 15:48, 8 May 2012
Rotates an image about origin (0,0) or center
Function
|
Parameters
Name | Type | Description | ||
---|---|---|---|---|
srcImage | CuviImage* | Input image | ||
dstImage | CuviImage* | Output image | ||
angle | Cuvi32f | Angle of rotation | ||
type | CuviRotationType | Supports:
| ||
stream | CuviStream* | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 8uC1 |
8uC3 | 8uC3 |
Sample
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|