The OpenVX Specification  dba1aa3

Detailed Description

Implements a pixel-wise maximum kernel. The output image dimensions should be the same as the dimensions of the input image.

Performing a pixel-wise maximum on a VX_DF_IMAGE_U8 images or VX_DF_IMAGE_S16. All data types of the input and output images must match.

\[ out[i,j] = out[i,j] = (in1[i,j] > in2[i,j] ? in1[i,j] : in2[i,j]). \]

Functions

vx_node VX_API_CALL vxMaxNode (vx_graph graph, vx_image in1, vx_image in2, vx_image out)
 [Graph] Creates a pixel-wise maximum kernel. More...
 
vx_status VX_API_CALL vxuMax (vx_context context, vx_image in1, vx_image in2, vx_image out)
 [Immediate] Computes pixel-wise maximum values between two images. More...
 

Function Documentation

vx_node VX_API_CALL vxMaxNode ( vx_graph  graph,
vx_image  in1,
vx_image  in2,
vx_image  out 
)

[Graph] Creates a pixel-wise maximum kernel.

Parameters
[in]graphThe reference to the graph where to create the node.
[in]in1The first input image. Must be of type VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16.
[in]in2The second input image. Must be of type VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16.
[out]outThe output image which will hold the result of max and will have the same type and dimensions of the imput images.
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus
vx_status VX_API_CALL vxuMax ( vx_context  context,
vx_image  in1,
vx_image  in2,
vx_image  out 
)

[Immediate] Computes pixel-wise maximum values between two images.

Parameters
[in]contextThe reference to the overall context.
[in]in1The first input image. Must be of type VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16.
[in]in2The second input image. Must be of type VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16.
[out]outThe output image which will hold the result of max.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.