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.0.3408 (4.1.0.3408)
Syntaxpublic static void Apply(
this IBackgroundSubtractor subtractor,
IInputArray image,
IOutputArray fgMask,
double learningRate = -1
)
<ExtensionAttribute>
Public Shared Sub Apply (
subtractor As IBackgroundSubtractor,
image As IInputArray,
fgMask As IOutputArray,
Optional learningRate As Double = -1
)
public:
[ExtensionAttribute]
static void Apply(
IBackgroundSubtractor^ subtractor,
IInputArray^ image,
IOutputArray^ fgMask,
double learningRate = -1
)
[<ExtensionAttribute>]
static member Apply :
subtractor : IBackgroundSubtractor *
image : IInputArray *
fgMask : IOutputArray *
?learningRate : float
(* Defaults:
let _learningRate = defaultArg learningRate -1
*)
-> unit
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