The OpenVX Specification  dba1aa3
Integral Image

## Detailed Description

Computes the integral image of the input. The output image dimensions should be the same as the dimensions of the input image.

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 VX_API_CALL vxIntegralImageNode (vx_graph graph, vx_image input, vx_image output)
[Graph] Creates an Integral Image Node. More...

vx_status VX_API_CALL vxuIntegralImage (vx_context context, vx_image input, vx_image output)
[Immediate] Computes the integral image of the input. More...

## Function Documentation

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

[Graph] Creates an Integral Image Node.

Parameters
 [in] graph The reference to the graph. [in] input The input image in VX_DF_IMAGE_U8 format. [out] output The output image in VX_DF_IMAGE_U32 format, which must have the same dimensions as the input image.
Returns
vx_node.
Return values
 vx_node A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus
 vx_status VX_API_CALL vxuIntegralImage ( vx_context context, vx_image input, vx_image output )

[Immediate] Computes the integral image of the input.

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