Function:BorderMask
From CUVI Wiki
Adds borders on the input specified bythe 4 arguments: top, bottom, left and right. By default the masking value is 0 (black).
Function
|
Parameters
Name | Type | Description |
---|---|---|
srcImage | CuviImage* | Input Image |
dstImage | CuviImage* | Output Image |
top | Cuvi32u | Number of pixels to mask from top |
bottom | Cuvi32u | Number of pixels to mask from bottom |
left | Cuvi32u | Number of pixels to mask from left |
right | Cuvi32u | Number of pixels to mask from right |
stream | CuviStream* | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 8uC1 |
8uC3 | 8uC3 |
16uC1 | 16uC1 |
16uC3 | 16uC3 |
Sample
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|