CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
Kernel: Weighted Average

Functions

VX_API_ENTRY vx_node VX_API_CALL vxWeightedAverageNode (vx_graph graph, vx_image img1, vx_scalar alpha, vx_image img2, vx_image output)
 [Graph] Creates a image weighted average node.
 
VX_API_ENTRY vx_status VX_API_CALL vxuWeightedAverage (vx_context context, vx_image img1, vx_scalar alpha, vx_image img2, vx_image output)
 [Immediate] Computes a weighted average image.
 

Detailed Description

Function Documentation

◆ vxuWeightedAverage()

VX_API_ENTRY vx_status VX_API_CALL vxuWeightedAverage ( vx_context context,
vx_image img1,
vx_scalar alpha,
vx_image img2,
vx_image output )

#include <vxu.h>

[Immediate] Computes a weighted average image.

Parameters
[in]contextThe reference to the overall context.
[in]img1The first VX_DF_IMAGE_U8 image.
[in]alphaA VX_TYPE_FLOAT32 type, the input value with the range \( 0.0 \le \alpha \le 1.0 \).
[in]img2The second VX_DF_IMAGE_U8 image.
[out]outputThe output VX_DF_IMAGE_U8 image.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.

◆ vxWeightedAverageNode()

VX_API_ENTRY vx_node VX_API_CALL vxWeightedAverageNode ( vx_graph graph,
vx_image img1,
vx_scalar alpha,
vx_image img2,
vx_image output )

#include <vx_nodes.h>

[Graph] Creates a image weighted average node.

Parameters
[in]graphThe reference to the graph.
[in]img1The first input VX_DF_IMAGE_U8 image.
[in]alphaThe input VX_TYPE_FLOAT32 scalar value with a value in the range of \( 0.0 \le \alpha \le 1.0 \).
[in]img2The second VX_DF_IMAGE_U8 image, which must have the same dimensions as the img1.
[out]outputThe output VX_DF_IMAGE_U8 image, which must have the same dimensions as the img1.
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus