http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
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).
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static MCvScalar cvAvg( IntPtr arr, IntPtr mask ) |
Visual Basic |
---|
Public Shared Function cvAvg ( _ arr As IntPtr, _ mask As IntPtr _ ) As MCvScalar |
Visual C++ |
---|
public: static MCvScalar cvAvg( IntPtr arr, IntPtr mask ) |
Parameters
- arr
- Type: System..::..IntPtr
The array
- mask
- Type: System..::..IntPtr
The optional operation mask