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.10.1935 (2.4.10.1935)

Syntax

C#
public int Diff(
	Image<TColor, byte> image,
	Rectangle roi
)
Visual Basic
Public Function Diff ( 
	image As Image(Of TColor, Byte),
	roi As Rectangle
) As Integer
Visual C++
public:
int Diff(
	Image<TColor, unsigned char>^ image, 
	Rectangle roi
)
F#
member Diff : 
        image : Image<'TColor, byte> * 
        roi : Rectangle -> int 

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

Return Value

Type: Int32

[Missing <returns> documentation for "M:Emgu.CV.VideoSurveillance.BGCodeBookModel`1.Diff(Emgu.CV.Image{`0,System.Byte},System.Drawing.Rectangle)"]

See Also