The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Accumulate Squared

Detailed Description

Accumulates a squared value from an input image to an output image.

Accumulate squares is computed by:

\[ accum(x,y) = saturate_{int16} ( (uint16) accum(x,y) + (((uint16)input(x,y)^2) >> (shift)) ) \]

Where \( 0 \le shift \le 15 \)

The overflow policy used is VX_CONVERT_POLICY_SATURATE.

Functions

vx_node vxAccumulateSquareImageNode (vx_graph graph, vx_image input, vx_scalar shift, vx_image accum)
 [Graph] Creates an accumulate square node. More...
 
vx_status vxuAccumulateSquareImage (vx_context context, vx_image input, vx_scalar shift, vx_image accum)
 [Immediate] Computes a squared accumulation. More...
 

Function Documentation

vx_node vxAccumulateSquareImageNode ( vx_graph  graph,
vx_image  input,
vx_scalar  shift,
vx_image  accum 
)

[Graph] Creates an accumulate square node.

Parameters
[in]graphThe reference to the graph.
[in]inputThe input VX_DF_IMAGE_U8 image.
[in]shiftThe input VX_TYPE_UINT32 with a value in the range of \( 0 \le shift \le 15 \).
[in,out]accumThe accumulation image in VX_DF_IMAGE_S16.
Returns
vx_node.
Return values
0Node could not be created.
*Node handle.
vx_status vxuAccumulateSquareImage ( vx_context  context,
vx_image  input,
vx_scalar  shift,
vx_image  accum 
)

[Immediate] Computes a squared accumulation.

Parameters
[in]contextThe reference to the overall context.
[in]inputThe input VX_DF_IMAGE_U8 image.
[in]shiftA VX_TYPE_UINT32 type, the input value with the range \( 0 \le shift \le 15 \).
[in,out]accumThe accumulation image in VX_DF_IMAGE_S16
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.