Table of Contents

Class BackgroundSubtractorMOG

Namespace
Emgu.CV.BgSegm
Assembly
Emgu.CV.dll

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 int

The length of the history.

nMixtures int

The maximum number of gaussian mixtures.

backgroundRatio double

Background ratio

noiseSigma double

Noise 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

nint

BackgroundSubtractorPtr

Pointer to the unmanaged BackgroundSubtractor object

public nint BackgroundSubtractorPtr { get; }

Property Value

nint

Methods

DisposeObject()

Release all the unmanaged memory associated with this background model.

protected override void DisposeObject()