http://www.emgu.com
Update the BG code book model

Namespace: Emgu.CV.VideoSurveillance
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public void Update(
	Image<TColor, byte> image,
	Rectangle roi,
	Image<Gray, byte> mask
)
Visual Basic
Public Sub Update ( _
	image As Image(Of TColor, Byte), _
	roi As Rectangle, _
	mask As Image(Of Gray, Byte) _
)
Visual C++
public:
void Update(
	Image<TColor, unsigned char>^ image, 
	Rectangle roi, 
	Image<Gray, unsigned char>^ mask
)

Parameters

image
Type: Emgu.CV..::..Image<(Of <(<'TColor, Byte>)>)>
The image for update
roi
Type: System.Drawing..::..Rectangle
The update roi, use Rectangle.Empty for the whole image
mask
Type: Emgu.CV..::..Image<(Of <(<'Gray, Byte>)>)>
Can be null if not needed. The update mask

See Also