Computes the mean pixel value and the standard deviation of the pixels in the input image (which has a dimension width and height).
The mean value is computed as:
\[ \mu = \frac{\left(\sum_{y=0}^h \sum_{x=0}^w src(x,y) \right)} {(width * height)} \]
The standard deviation is computed as:
\[ \sigma = \sqrt{\frac{\left(\sum_{y=0}^h \sum_{x=0}^w (\mu - src(x,y))^2 \right)} {(width * height)}} \]
[Graph] Creates a mean value and standard deviation node.
- Parameters
-
- Returns
vx_node
.
- Return values
-
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
[Immediate] Computes the mean value and standard deviation.
- Parameters
-
[in] | context | The reference to the overall context. |
[in] | input | The input image. VX_DF_IMAGE_U8 is supported. |
[out] | mean | The average pixel value. |
[out] | stddev | The standard deviation of the pixel values. |
- Returns
- A
vx_status_e
enumeration.
- Return values
-