| BackgroundSubtractorApply Method |
the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual void Apply(
InputArray image,
OutputArray fgmask,
double learningRate = -1
)
Public Overridable Sub Apply (
image As InputArray,
fgmask As OutputArray,
Optional learningRate As Double = -1
)
public:
virtual void Apply(
InputArray^ image,
OutputArray^ fgmask,
double learningRate = -1
)
abstract Apply :
image : InputArray *
fgmask : OutputArray *
?learningRate : float
(* Defaults:
let _learningRate = defaultArg learningRate -1
*)
-> unit
override Apply :
image : InputArray *
fgmask : OutputArray *
?learningRate : float
(* Defaults:
let _learningRate = defaultArg learningRate -1
*)
-> unit
Parameters
- image
- Type: OpenCvSharpInputArray
[Missing <param name="image"/> documentation for "M:OpenCvSharp.BackgroundSubtractor.Apply(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Double)"]
- fgmask
- Type: OpenCvSharpOutputArray
[Missing <param name="fgmask"/> documentation for "M:OpenCvSharp.BackgroundSubtractor.Apply(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Double)"]
- learningRate (Optional)
- Type: SystemDouble
[Missing <param name="learningRate"/> documentation for "M:OpenCvSharp.BackgroundSubtractor.Apply(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Double)"]
See Also