Class BackgroundSubtractor
The Base Class for Background/Foreground Segmentation. The class is only used to define the common interface for the whole family of background/foreground segmentation algorithms.
Inheritance
System.Object
BackgroundSubtractor
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public abstract class BackgroundSubtractor : Algorithm, ICvPtrHolder
Methods
| Improve this Doc View SourceApply(InputArray, OutputArray, Double)
the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.
Declaration
public virtual void Apply(InputArray image, OutputArray fgmask, double learningRate = -1)
Parameters
Type | Name | Description |
---|---|---|
InputArray | image | |
OutputArray | fgmask | |
System.Double | learningRate |
GetBackgroundImage(OutputArray)
computes a background image
Declaration
public virtual void GetBackgroundImage(OutputArray backgroundImage)
Parameters
Type | Name | Description |
---|---|---|
OutputArray | backgroundImage |