Difference between revisions of "Function:Taper"
From CUVI Wiki
(Created page with "__NOTOC__ Smartly extends image borders ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus taper(const CuviImage& src, CuviIm...") |
|||
Line 31: | Line 31: | ||
|- | |- | ||
| top | | top | ||
| | | Cuvi32u | ||
| Add this number of pixels to the top | | Add this number of pixels to the top | ||
|- | |- | ||
| bottom | | bottom | ||
| | | Cuvi32u | ||
| Add this number of pixels to the bottom | | Add this number of pixels to the bottom | ||
|- | |- | ||
| left | | left | ||
| | | Cuvi32u | ||
| Add this number of pixels to left | | Add this number of pixels to left | ||
|- | |- | ||
| right | | right | ||
| | | Cuvi32u | ||
| Add this number of pixels to right | | Add this number of pixels to right | ||
|- | |- |
Revision as of 17:14, 30 June 2019
Smartly extends image borders
Function
|
Parameters
Name | Type | Description |
---|---|---|
src | const CuviImage& | Input Image |
dst | CuviImage& | Output Image |
top | Cuvi32u | Add this number of pixels to the top |
bottom | Cuvi32u | Add this number of pixels to the bottom |
left | Cuvi32u | Add this number of pixels to left |
right | Cuvi32u | Add this number of pixels to right |
stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 8uC1 |
8uC3 | 8uC3 |
Sample
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|