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...") |
(→Sample) |
||
(18 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus taper(const CuviImage& src, | CuviStatus taper(const CuviImage& src, | ||
Line 14: | Line 14: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | |||
====Parameters==== | |||
{| | |||
|style="font-size:75%;"| | |||
{|class="wikitable" | {|class="wikitable" | ||
Line 31: | Line 34: | ||
|- | |- | ||
| 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 | ||
|- | |- | ||
Line 50: | Line 53: | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
|} | |||
|} | |} | ||
===Image Type Support=== | ====Image Type Support==== | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 67: | Line 71: | ||
|} | |} | ||
===Sample=== | ====Sample==== | ||
[[File:taper.jpg|none|frame|Input]] | |||
<br /> | |||
[[File:taper_result.jpg|none|frame|Result]] | |||
<br /> | |||
===Example=== | ====Code Example==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus st = CUVI_SUCCESS; | CuviStatus st = CUVI_SUCCESS; |
Latest revision as of 16:18, 18 October 2022
Smartly extends image borders
Function
|
Parameters
|
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
Code Example
|