CudaBackgroundSubtractorGMGApply Method |
http://www.emgu.com
Updates the background model
Namespace:
Emgu.CV.Cuda
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntaxpublic void Apply(
IInputArray frame,
IOutputArray foregroundMask,
double learningRate = -1,
Stream stream = null
)
Public Sub Apply (
frame As IInputArray,
foregroundMask As IOutputArray,
Optional learningRate As Double = -1,
Optional stream As Stream = Nothing
)
public:
void Apply(
IInputArray^ frame,
IOutputArray^ foregroundMask,
double learningRate = -1,
Stream^ stream = nullptr
)
member Apply :
frame : IInputArray *
foregroundMask : IOutputArray *
?learningRate : float *
?stream : Stream
(* Defaults:
let _learningRate = defaultArg learningRate -1
let _stream = defaultArg stream null
*)
-> unit
Parameters
- frame
- Type: Emgu.CVIInputArray
Next video frame. - foregroundMask
- Type: Emgu.CVIOutputArray
The output foreground mask as an 8-bit binary image. - learningRate (Optional)
- Type: SystemDouble
The learning rate, use -1.0f for default value. - stream (Optional)
- Type: Emgu.CV.CudaStream
Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
See Also