Click or drag to resize

BackgroundSubtractorExtensionApply Method
Update the background model

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


Type: Emgu.CVIBackgroundSubtractor
The background subtractor
Type: Emgu.CVIInputArray
The image that is used to update the background model
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