Difference between revisions of "Function:BorderMask"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Adds borders on the input specified by the 4 arguments: top, bottom, left and right. | Adds borders on the input specified by the 4 arguments: top, bottom, left and right.. | ||
===Function=== | ===Function=== |
Revision as of 18:46, 18 April 2013
Adds borders on the input specified by the 4 arguments: top, bottom, left and right..
Function
CuviStatus borderMask(const CuviImage& src,
CuviImage& dst,
const Cuvi32s top,
const Cuvi32s bottom,
const Cuvi32s left,
const Cuvi32s right,
const Cuvi32f mask,
const CuviStream& stream = CuviStream()); |
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 |
stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 8uC1 |
8uC3 | 8uC3 |
16uC1 | 16uC1 |
16uC3 | 16uC3 |
Sample
Example
CuviImage gimg = cuvi::io::loadImage(path), gout;
//Mask borders with pixel value of 0
cuvi::colorOperations::borderMask(gimg,gout,10,10,5,3,0); |