Difference between revisions of "Function:RotateNoCrop"
From CUVI Wiki
(→Sample) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 71: | Line 71: | ||
{| | {| | ||
|- | |- | ||
|[[File:Check.png|frame|Input Image]] | |[[File:Check.png|frame|Input Image Size: 400x300]] | ||
|[[File:Check_NoCrop_15.2.png|frame| | |[[File:Check_NoCrop_15.2.png|frame|Rotated at Angle: 15.3 Size: 467x397]] | ||
|[[File:Check_NoCrop_90.png|frame|Rotated at Angle: 90 Size: 303x401]] | |||
|} | |} | ||
Line 87: | Line 88: | ||
if (s != CUVI_SUCCESS) printf("\nImage load Error: %d", s); | if (s != CUVI_SUCCESS) printf("\nImage load Error: %d", s); | ||
//Perform Rotation | //Perform Rotation | ||
s = cuvi::geometryTransforms:: | s = cuvi::geometryTransforms::rotateNoCrop(src, dst, 15.2); | ||
cuvi::io::saveImage(dst, opath); | cuvi::io::saveImage(dst, opath); |
Latest revision as of 16:07, 17 November 2019
Rotates an image while preserving the rotated image.
Function
|
Parameters
Name | Type | Description |
---|---|---|
src | const CuviImage& | Input image |
dst | CuviImage& | Output image |
angle | const Cuvi32f | Angle of rotation |
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 |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|