Difference between revisions of "Function:Crop"
From CUVI Wiki
| Line 86: | Line 86: | ||
CuviImage gimg = cuvi::io:: | CuviImage gimg = cuvi::io::loadImage(path), gout; | ||
//Cropping parameters | //Cropping parameters | ||
Revision as of 11:19, 18 April 2013
rops the desired portion of an image
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Output Image |
| top | const Cuvi32s | Number of pixels to cut from top |
| bottom | const Cuvi32s | Number of pixels to cut from bottom |
| left | const Cuvi32s | Number of pixels to cut from left |
| right | const Cuvi32s | Number of pixels to cut from right |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
| 8uC3 | 8uC3 |
| 16uC1 | 16uC1 |
| 16uC3 | 16uC3 |
Sample
Example
|

