The OpenVX Specification  a73e458
Accumulate Squared

Detailed Description

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

Accumulate squares is computed by [R00007]:

\[ 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 [R00008].


vx_node VX_API_CALL vxAccumulateSquareImageNode (vx_graph graph, vx_image input, vx_scalar shift, vx_image accum)
 [Graph] Creates an accumulate square node. More...

Function Documentation

◆ vxAccumulateSquareImageNode()

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

[Graph] Creates an accumulate square node.

[in]graphThe reference to the graph [R00274].
[in]inputThe input VX_DF_IMAGE_U8 image [R00275].
[in]shiftThe input VX_TYPE_UINT32 with a value in the range of \( 0 \le shift \le 15 \) [R00276].
[in,out]accumThe accumulation image in VX_DF_IMAGE_S16 [R00277].
vx_node [R00278].
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus