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
.
[Graph] Creates an accumulate square node.
- Parameters
-
[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 . |
- Returns
vx_node
.
- Return values
-
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
[Immediate] Computes a squared accumulation.
- Parameters
-
[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 |
- Returns
- A
vx_status_e
enumeration.
- Return values
-