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

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

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
)
F#
member Update : 
        image : Image<'TColor, byte> * 
        roi : Rectangle * 
        mask : Image<Gray, byte> -> unit 

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