Get the average value on this image, using the specific mask

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 TColor GetAverage(
	Image<Gray, byte> mask
)
Public Function GetAverage ( _
	mask As Image(Of Gray, Byte) _
) As TColor
public:
TColor GetAverage(
	Image<Gray, unsigned char>^ mask
)

Parameters

mask
Image<(Of <(<'Gray, Byte>)>)>
The mask for find the average value

Return Value

The average color of the masked area

See Also