The OpenVX Specification
r28647
|
Accumulates a weighted value from an input image to an output image.
Weighted accumulation is computed by:
\[ accum(x,y) = (1 - \alpha)*accum(x,y) + \alpha*input(x,y) \]
Where \( 0 \le \alpha \le 1 \) Conceptually, the rounding for this is defined as:
\[ output(x,y)= uint8( (1 - \alpha) * float32( int32( output(x,y) ) ) + \alpha * float32( int32( input(x,y) ) ) ) \]
Functions | |
vx_node | vxAccumulateWeightedImageNode (vx_graph graph, vx_image input, vx_scalar alpha, vx_image accum) |
[Graph] Creates a weighted accumulate node. More... | |
vx_status | vxuAccumulateWeightedImage (vx_context context, vx_image input, vx_scalar scale, vx_image accum) |
[Immediate] Computes a weighted accumulation. More... | |
vx_node vxAccumulateWeightedImageNode | ( | vx_graph | graph, |
vx_image | input, | ||
vx_scalar | alpha, | ||
vx_image | accum | ||
) |
[Graph] Creates a weighted accumulate node.
[in] | graph | The reference to the graph. |
[in] | input | The input VX_DF_IMAGE_U8 image. |
[in] | alpha | The input VX_TYPE_FLOAT32 scalar value with a value in the range of \( 0.0 \le \alpha \le 1.0 \). |
[in,out] | accum | The VX_DF_IMAGE_U8 accumulation image. |
vx_node
. 0 | Node could not be created. |
* | Node handle. |
vx_status vxuAccumulateWeightedImage | ( | vx_context | context, |
vx_image | input, | ||
vx_scalar | scale, | ||
vx_image | accum | ||
) |
[Immediate] Computes a weighted accumulation.
[in] | context | The reference to the overall context. |
[in] | input | The input VX_DF_IMAGE_U8 image. |
[in] | scale | A VX_TYPE_FLOAT32 type, the input value with the range \( 0.0 \le \alpha \le 1.0 \). |
[in,out] | accum | The VX_DF_IMAGE_U8 accumulation image. |
vx_status_e
enumeration. VX_SUCCESS | Success |
* | An error occurred. See vx_status_e . |