Difference between revisions of "Function:BorderMask"
From CUVI Wiki
| Line 4: | Line 4: | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus borderMask(const CuviImage& src, | CuviStatus borderMask(const CuviImage& src, | ||
| Line 16: | Line 16: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ===Parameters=== | ||
Revision as of 12:39, 18 October 2022
Adds borders on the input specified by the 4 arguments: top, bottom, left and right..
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Output Image |
| top | const Cuvi32s | Number of pixels to mask from top |
| bottom | const Cuvi32s | Number of pixels to mask from bottom |
| left | const Cuvi32s | Number of pixels to mask from left |
| right | const Cuvi32s | Number of pixels to mask from right |
| mask | const Cuvi32f* | Values of masked pixel for each channel |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
| 8uC3 | 8uC3 |
| 16uC1 | 16uC1 |
| 16uC3 | 16uC3 |
Sample
Example
|

