http://www.emgu.com
Updates statistical model and returns number of found foreground regions

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

Syntax

C#
public static int cvUpdateBGStatModel(
	IntPtr currentFrame,
	IntPtr bgModel,
	double learningRate
)
Visual Basic
Public Shared Function cvUpdateBGStatModel ( _
	currentFrame As IntPtr, _
	bgModel As IntPtr, _
	learningRate As Double _
) As Integer
Visual C++
public:
static int cvUpdateBGStatModel(
	IntPtr currentFrame, 
	IntPtr bgModel, 
	double learningRate
)

Parameters

currentFrame
Type: System..::..IntPtr
The current frame
bgModel
Type: System..::..IntPtr
The bg model
learningRate
Type: System..::..Double
The leaning rate, use -1 for default value

Return Value

The number of found foreground regions

See Also