Click or drag to resize

BackgroundSubtractorExtensionApply Method

http://www.emgu.com
Update the background model

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static void Apply(
	this IBackgroundSubtractor subtractor,
	IInputArray image,
	IOutputArray fgMask,
	double learningRate = -1
)

Parameters

subtractor
Type: Emgu.CVIBackgroundSubtractor
The background subtractor
image
Type: Emgu.CVIInputArray
The image that is used to update the background model
fgMask
Type: Emgu.CVIOutputArray
The output foreground mask
learningRate (Optional)
Type: SystemDouble
Use -1 for default

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IBackgroundSubtractor. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also