The OpenVX Specification
r28647
|
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... | |
vx_node 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. |
[in] | input | The input VX_DF_IMAGE_U8 image. |
[in] | shift | The input VX_TYPE_UINT32 with a value in the range of \( 0 \le shift \le 15 \). |
[in,out] | accum | The accumulation image in VX_DF_IMAGE_S16 . |
vx_node
. 0 | Node 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.
[in] | context | The reference to the overall context. |
[in] | input | The input VX_DF_IMAGE_U8 image. |
[in] | shift | A VX_TYPE_UINT32 type, the input value with the range \( 0 \le shift \le 15 \). |
[in,out] | accum | The accumulation image in VX_DF_IMAGE_S16 |
vx_status_e
enumeration. VX_SUCCESS | Success |
* | An error occurred. See vx_status_e . |