Update Running Average. this = (1-alpha)*this + alpha*img, using the 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 void RunningAvg(
	Image<TColor, TDepth> img,
	double alpha,
	Image<Gray, byte> mask
)
Public Sub RunningAvg ( _
	img As Image(Of TColor, TDepth), _
	alpha As Double, _
	mask As Image(Of Gray, Byte) _
)
public:
void RunningAvg(
	Image<TColor, TDepth>^ img, 
	double alpha, 
	Image<Gray, unsigned char>^ mask
)

Parameters

img
Image<(Of <(<'TColor, TDepth>)>)>
Input image, 1- or 3-channel, Byte or Single (each channel of multi-channel image is processed independently).
alpha
Double
The weight of img
mask
Image<(Of <(<'Gray, Byte>)>)>
The mask for the running average

See Also