![]() |
The OpenVX Specification
a73e458
|
Accumulates a weighted value from an input image to an output image.
Weighted accumulation is computed by [R00009]:
\[ 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 [R00010]:
\[ output(x,y)= uint8( (1 - \alpha) * float32( int32( output(x,y) ) ) + \alpha * float32( int32( input(x,y) ) ) ) \]
Functions | |
| vx_node VX_API_CALL | vxAccumulateWeightedImageNode (vx_graph graph, vx_image input, vx_scalar alpha, vx_image accum) |
| [Graph] Creates a weighted accumulate node. More... | |
| vx_node VX_API_CALL 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 [R00270]. |
| [in] | input | The input VX_DF_IMAGE_U8 image [R00271]. |
| [in] | alpha | The input VX_TYPE_FLOAT32 scalar value with a value in the range of \( 0.0 \le \alpha \le 1.0 \) [R00272]. |
| [in,out] | accum | The VX_DF_IMAGE_U8 accumulation image [R00273]. |
vx_node. | vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |