Difference between revisions of "Function:Rotate"
From CUVI Wiki
Line 5: | Line 5: | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus rotate(CuviImage | CuviStatus rotate(const CuviImage& src, | ||
CuviImage | CuviImage& dst, | ||
Cuvi32f angle, | const Cuvi32f angle, | ||
CuviRotationType type = CUVI_ROTATE_CENTER, | const CuviRotationType type = CUVI_ROTATE_CENTER, | ||
CuviStream | const CuviStream& stream = CuviStream()); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Line 22: | Line 22: | ||
! Description | ! Description | ||
|- | |- | ||
| | | src | ||
| CuviImage | | const CuviImage& | ||
| Input image | | Input image | ||
|- | |- | ||
| | | dst | ||
| CuviImage | | CuviImage& | ||
| Output image | | Output image | ||
|- | |- | ||
| angle | | angle | ||
| Cuvi32f | | const Cuvi32f | ||
| Angle of rotation | | Angle of rotation | ||
|- | |- | ||
| type | | type | ||
| CuviRotationType | | const CuviRotationType | ||
| Supports: | | Supports: | ||
{| | {| | ||
Line 44: | Line 44: | ||
|- | |- | ||
| stream | | stream | ||
| CuviStream | | const CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
Line 63: | Line 63: | ||
| 8uC3 | | 8uC3 | ||
| 8uC3 | | 8uC3 | ||
|- | |||
| 16uC1 | |||
| 16uC1 | |||
|- | |||
| 16uC3 | |||
| 16uC3 | |||
|- | |||
| 32fC1 | |||
| 32fC1 | |||
|- | |||
| 32fC3 | |||
| 32fC3 | |||
|} | |} | ||
Line 79: | Line 91: | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviImage | CuviImage gimg = cuvi::io::loadImage(path), gout; | ||
//function call | //function call |
Revision as of 17:15, 19 April 2013
Rotates an image about origin (0,0) or center
Function
|
Parameters
Name | Type | Description | ||
---|---|---|---|---|
src | const CuviImage& | Input image | ||
dst | CuviImage& | Output image | ||
angle | const Cuvi32f | Angle of rotation | ||
type | const CuviRotationType | Supports:
| ||
stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 8uC1 |
8uC3 | 8uC3 |
16uC1 | 16uC1 |
16uC3 | 16uC3 |
32fC1 | 32fC1 |
32fC3 | 32fC3 |
Sample
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|