Difference between revisions of "Function:Crop"
From CUVI Wiki
(Created page with "__NOTOC__ rops the desired portion of an image ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus crop(CuviImage* srcImage, Cu...") |
|||
| Line 92: | Line 92: | ||
//Cropping parameters | //Cropping parameters | ||
int top = 20, bottom = 20, left = | int top = 20, bottom = 20, left = 5, right = 10; | ||
//crop. Output image size must conform to cropped size | //crop. Output image size must conform to cropped size | ||
Revision as of 09:58, 26 April 2012
rops the desired portion of an image
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| srcImage | CuviImage* | Input Image |
| dstImage | CuviImage* | Output Image |
| top | Cuvi32u | Number of pixels to cut from top |
| bottom | Cuvi32u | Number of pixels to cut from bottom |
| left | Cuvi32u | Number of pixels to cut from left |
| right | Cuvi32u | Number of pixels to cut from right |
| stream | CuviStream* | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
| 8uC3 | 8uC3 |
| 16uC1 | 16uC1 |
| 16uC3 | 16uC3 |
Sample
Example
|

