CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
Kernel: Mean and Standard Deviation

Functions

VX_API_ENTRY vx_node VX_API_CALL vxMeanStdDevNode (vx_graph graph, vx_image input, vx_scalar mean, vx_scalar stddev)
 [Graph] Creates a mean value and optionally, a standard deviation node.
 
VX_API_ENTRY vx_status VX_API_CALL vxuMeanStdDev (vx_context context, vx_image input, vx_float32 *mean, vx_float32 *stddev)
 [Immediate] Computes the mean value and optionally the standard deviation.
 

Detailed Description

Function Documentation

◆ vxMeanStdDevNode()

VX_API_ENTRY vx_node VX_API_CALL vxMeanStdDevNode ( vx_graph graph,
vx_image input,
vx_scalar mean,
vx_scalar stddev )

#include <vx_nodes.h>

[Graph] Creates a mean value and optionally, a standard deviation node.

Parameters
[in]graphThe reference to the graph.
[in]inputThe input image. VX_DF_IMAGE_U8 and VX_DF_IMAGE_U1 are supported.
[out]meanThe VX_TYPE_FLOAT32 average pixel value.
[out]stddev[optional] The VX_TYPE_FLOAT32 standard deviation of the pixel values.
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus

◆ vxuMeanStdDev()

VX_API_ENTRY vx_status VX_API_CALL vxuMeanStdDev ( vx_context context,
vx_image input,
vx_float32 * mean,
vx_float32 * stddev )

#include <vxu.h>

[Immediate] Computes the mean value and optionally the standard deviation.

Parameters
[in]contextThe reference to the overall context.
[in]inputThe input image. VX_DF_IMAGE_U8 and VX_DF_IMAGE_U1 are supported.
[out]meanThe average pixel value.
[out]stddev[optional] The standard deviation of the pixel values.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.