Cv2MeanStdDev Method (InputArray, OutputArray, OutputArray, InputArray) OpenCvSharp Class Library
computes mean value and standard deviation of all or selected array elements

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void MeanStdDev(
	InputArray src,
	OutputArray mean,
	OutputArray stddev,
	InputArray mask = null
)

Parameters

src
Type: OpenCvSharp.CPlusPlusInputArray
The source array; it should have 1 to 4 channels (so that the results can be stored in Scalar's)
mean
Type: OpenCvSharp.CPlusPlusOutputArray
The output parameter: computed mean value
stddev
Type: OpenCvSharp.CPlusPlusOutputArray
The output parameter: computed standard deviation
mask (Optional)
Type: OpenCvSharp.CPlusPlusInputArray
The optional operation mask
See Also

Reference