Emgu CV Library Documentation
cvAvg Method (arr, mask)
NamespacesEmgu.CVCvInvokecvAvg(IntPtr, IntPtr)

Calculates the average value M of array elements, independently for each channel: N = sumI mask(I)!=0 Mc = 1/N * sumI,mask(I)!=0 arr(I)c If the array is IplImage and COI is set, the function processes the selected channel only and stores the average to the first scalar component (S0).
Declaration Syntax
C#Visual BasicVisual C++
public static MCvScalar cvAvg(
	IntPtr arr,
	IntPtr mask
Public Shared Function cvAvg ( _
	arr As IntPtr, _
	mask As IntPtr _
) As MCvScalar
static MCvScalar cvAvg(
	IntPtr arr, 
	IntPtr mask
arr (IntPtr)
The array
mask (IntPtr)
The optional operation mask
Return Value
average (mean) of array elements

Assembly: Emgu.CV (Module: Emgu.CV) Version: (