![]() |
The OpenVX Specification
a73e458
|
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].
Functions | |
| 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... | |
| 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] | graph | The reference to the graph [R00274]. |
| [in] | input | The input VX_DF_IMAGE_U8 image [R00275]. |
| [in] | shift | The input VX_TYPE_UINT32 with a value in the range of \( 0 \le shift \le 15 \) [R00276]. |
| [in,out] | accum | The accumulation image in VX_DF_IMAGE_S16 [R00277]. |
vx_node [R00278]. | vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |