The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Integral Image

Detailed Description

Computes the integral image of the input.

Each output pixel is the sum of the corresponding input pixel and all other pixels above and to the left of it.

\[ dst(x,y) = sum(x,y) \]

where, for x>=0 and y>=0

\[ sum(x,y) = src(x,y) + sum(x-1,y) + sum(x,y-1) - sum(x-1,y-1) \]

otherwise,

\[ sum(x,y) = 0 \]

The overflow policy used is VX_CONVERT_POLICY_WRAP.

Functions

vx_node vxIntegralImageNode (vx_graph graph, vx_image input, vx_image output)
 [Graph] Creates an Integral Image Node. More...
 
vx_status vxuIntegralImage (vx_context context, vx_image input, vx_image output)
 [Immediate] Computes the integral image of the input. More...
 

Function Documentation

vx_node vxIntegralImageNode ( vx_graph  graph,
vx_image  input,
vx_image  output 
)

[Graph] Creates an Integral Image Node.

Parameters
[in]graphThe reference to the graph.
[in]inputThe input image in VX_DF_IMAGE_U8 format.
[out]outputThe output image in VX_DF_IMAGE_U32 format.
Returns
vx_node.
Return values
0Node could not be created.
*Node handle.
vx_status vxuIntegralImage ( vx_context  context,
vx_image  input,
vx_image  output 
)

[Immediate] Computes the integral image of the input.

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