Class BackgroundSubtractor
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
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.
public abstract class BackgroundSubtractor : Algorithm, IDisposable, ICvPtrHolder
- Inheritance
-
BackgroundSubtractor
- Implements
- Derived
- Inherited Members
Methods
Apply(InputArray, OutputArray, double)
the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.
public virtual void Apply(InputArray image, OutputArray fgmask, double learningRate = -1)
Parameters
imageInputArrayfgmaskOutputArraylearningRatedouble
GetBackgroundImage(OutputArray)
computes a background image
public virtual void GetBackgroundImage(OutputArray backgroundImage)
Parameters
backgroundImageOutputArray