Difference between revisions of "Function:AND"
From CUVI Wiki
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Logical | Logical bitwise AND operation between 2 images or an image and a constant value. | ||
===Function=== | ===Function=== | ||
{| | {| | ||
Line 9: | Line 9: | ||
CuviImage& dst, | CuviImage& dst, | ||
const CuviStream& stream = CuviStream()); | const CuviStream& stream = CuviStream()); | ||
CuviStatus AND(const CuviImage& src, | |||
const Cuvi32s value, | |||
CuviImage& dst, | |||
const CuviStream& stream = CuviStream()); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Line 83: | Line 89: | ||
//ANDing | //ANDing | ||
cuvi::arithmeticLogical::AND(gimg1,gimg2,gout); | cuvi::arithmeticLogical::AND(gimg1,gimg2,gout); | ||
//The same can be achieved by using logical operators | |||
gout = gimg1 & gimg2; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} |
Revision as of 19:34, 12 June 2014
Logical bitwise AND operation between 2 images or an image and a constant value.
Function
|
Parameters
Name | Type | Description |
---|---|---|
src1 | const CuviImage& | First Input Image |
src2 | const CuviImage& | Second Input Image |
dst | CuviImage& | Resultant Image |
stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
Input 1 | Input 2 | Output |
---|---|---|
8uC1 | 8uC1 | 8uC1 |
8uC3 | 8uC3 | 8uC3 |
16uC1 | 16uC1 | 16uC1 |
16uC3 | 16uC3 | 16uC3 |
Sample
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|