http://www.emgu.com
Find the forground by codebook method. The result will be stored in the ForgroundMask property

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

Syntax

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

Parameters

image
Type: Emgu.CV..::..Image<(Of <(<'TColor, Byte>)>)>
The image to run diff against
roi
Type: System.Drawing..::..Rectangle
The region of interest. Use Rectangle.Empty for the whole region

See Also