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
- Inheritance
-
BackgroundSubtractor
- Implements
- Derived
- Inherited Members
Constructors
- BackgroundSubtractor(nint, nint, Action<nint>)
Constructor for the factory pattern (cv::Ptr<T>* + raw T*).
Methods
- Apply(InputArray, InputArray, OutputArray, double)
Computes a foreground mask with known foreground mask input. This method has a default virtual implementation that throws a "not implemented" error in OpenCV. Foreground masking may not be supported by all background subtractors.
- Apply(InputArray, OutputArray, double)
the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.
- GetBackgroundImage(OutputArray)
computes a background image