Difference between revisions of "Function:PadImage"
From CUVI Wiki
(Created page with "__NOTOC__ Extends image borders by padding extra values on the image boundaries. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus padImage(...") |
|||
| Line 91: | Line 91: | ||
//Pad borders with pixel value of 0 | //Pad borders with pixel value of 0 | ||
Cuvi32f values[] = {0,0,0}; | Cuvi32f values[] = {0,0,0}; | ||
cuvi::colorOperations:: | cuvi::colorOperations::padImage(gimg,gout,10,10,5,3,values); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Latest revision as of 13:15, 13 June 2014
Extends image borders by padding extra values on the image boundaries.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Output Image |
| top | const Cuvi32s | Number of pixels to pad on top |
| bottom | const Cuvi32s | Number of pixels to pad on bottom |
| left | const Cuvi32s | Number of pixels to pad on left |
| right | const Cuvi32s | Number of pixels to pad on right |
| values | const Cuvi32f* | Values of padded pixels |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
| 8uC3 | 8uC3 |
| 16uC1 | 16uC1 |
| 16uC3 | 16uC3 |
Sample
Example
|