The OpenVX Specification
r28647
|
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... | |
[Graph] Creates an Integral Image Node.
[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. |
vx_node
. 0 | Node 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.
[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. |
vx_status_e
enumeration. VX_SUCCESS | Success |
* | An error occurred. See vx_status_e . |