The function cvAvgSdv calculates the average value and standard deviation of array elements, independently for each channel

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvAvgSdv(
	IntPtr arr,
	ref MCvScalar mean,
	ref MCvScalar stdDev,
	IntPtr mask
)
Public Shared Sub cvAvgSdv ( _
	arr As IntPtr, _
	ByRef mean As MCvScalar, _
	ByRef stdDev As MCvScalar, _
	mask As IntPtr _
)
public:
static void cvAvgSdv(
	IntPtr arr, 
	MCvScalar% mean, 
	MCvScalar% stdDev, 
	IntPtr mask
)

Parameters

arr
IntPtr
The array
mean
MCvScalar%
Pointer to the mean value
stdDev
MCvScalar%
Pointer to the standard deviation
mask
IntPtr
The optional operation mask

Remarks

If the array is IplImage and COI is set, the function processes the selected channel only and stores the average and standard deviation to the first compoenents of output scalars (M0 and S0).

See Also