Difference between revisions of "Function:BorderMask"
From CUVI Wiki
Line 95: | Line 95: | ||
//Mask borders with pixel value of 0 | //Mask borders with pixel value of 0 | ||
cuvi:: | cuvi::colorOperations::borderMask(gimg,gout,10,10,5,3,0); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} |
Revision as of 17:27, 26 April 2012
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
|