The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Bitwise EXCLUSIVE OR

Detailed Description

Performs a bitwise EXCLUSIVE OR (XOR) operation between two VX_DF_IMAGE_U8 images.

Bitwise XOR is computed by the following, for each bit in each pixel in the input images:

\[ out(x,y) = in_1(x,y) \oplus in_2(x,y) \]

Or expressed as C code:

out(x,y) = in_1(x,y) ^ in_2(x,y)

Functions

vx_status vxuXor (vx_context context, vx_image in1, vx_image in2, vx_image out)
 [Immediate] Computes the bitwise exclusive-or between two images. More...
 
vx_node vxXorNode (vx_graph graph, vx_image in1, vx_image in2, vx_image out)
 [Graph] Creates a bitwise EXCLUSIVE OR node. More...
 

Function Documentation

vx_node vxXorNode ( vx_graph  graph,
vx_image  in1,
vx_image  in2,
vx_image  out 
)

[Graph] Creates a bitwise EXCLUSIVE OR node.

Parameters
[in]graphThe reference to the graph.
[in]in1A VX_DF_IMAGE_U8 input image.
[in]in2A VX_DF_IMAGE_U8 input image.
[out]outThe VX_DF_IMAGE_U8 output image.
Returns
vx_node.
Return values
0Node could not be created.
*Node handle.
vx_status vxuXor ( vx_context  context,
vx_image  in1,
vx_image  in2,
vx_image  out 
)

[Immediate] Computes the bitwise exclusive-or between two images.

Parameters
[in]contextThe reference to the overall context.
[in]in1A VX_DF_IMAGE_U8 input image
[in]in2A VX_DF_IMAGE_U8 input image
[out]outThe VX_DF_IMAGE_U8 output image.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.