http://www.emgu.com
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.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static MCvScalar Mean(
IInputArray arr,
IInputArray mask = null
)
Public Shared Function Mean (
arr As IInputArray,
Optional mask As IInputArray = Nothing
) As MCvScalar
public:
static MCvScalar Mean(
IInputArray^ arr,
IInputArray^ mask = nullptr
)
static member Mean :
arr : IInputArray *
?mask : IInputArray
(* Defaults:
let _mask = defaultArg mask null
*)
-> MCvScalar
Parameters
- arr
- Type: Emgu.CVIInputArray
The array - mask (Optional)
- Type: Emgu.CVIInputArray
The optional operation mask
Return Value
Type:
MCvScalaraverage (mean) of array elements
See Also