Class BackgroundSubtractorMOG
Gaussian Mixture-based Background/Foreground Segmentation Algorithm. The class implements the following algorithm: "An improved adaptive background mixture model for real-time tracking with shadow detection" P. KadewTraKuPong and R. Bowden, Proc. 2nd European Workshp on Advanced Video-Based Surveillance Systems, 2001."
public class BackgroundSubtractorMOG : UnmanagedObject, IDisposable, IBackgroundSubtractor, IAlgorithm
- Inheritance
-
BackgroundSubtractorMOG
- Implements
- Inherited Members
- Extension Methods
Constructors
BackgroundSubtractorMOG(int, int, double, double)
Create an "Improved adaptive Gaussian mixture model for background subtraction".
public BackgroundSubtractorMOG(int history = 200, int nMixtures = 5, double backgroundRatio = 0.7, double noiseSigma = 0)
Parameters
history
intThe length of the history.
nMixtures
intThe maximum number of gaussian mixtures.
backgroundRatio
doubleBackground ratio
noiseSigma
doubleNoise strength (standard deviation of the brightness or each color channel). 0 means some automatic value.
Properties
AlgorithmPtr
Pointer to the unmanaged Algorithm object
public nint AlgorithmPtr { get; }
Property Value
BackgroundSubtractorPtr
Pointer to the unmanaged BackgroundSubtractor object
public nint BackgroundSubtractorPtr { get; }
Property Value
Methods
DisposeObject()
Release all the unmanaged memory associated with this background model.
protected override void DisposeObject()