Class BackgroundSubtractorMOG
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm
public class BackgroundSubtractorMOG : BackgroundSubtractor, IDisposable, ICvPtrHolder
- Inheritance
-
BackgroundSubtractorMOG
- Implements
- Inherited Members
Properties
BackgroundRatio
public double BackgroundRatio { get; set; }
Property Value
History
public int History { get; set; }
Property Value
NMixtures
public int NMixtures { get; set; }
Property Value
NoiseSigma
public double NoiseSigma { get; set; }
Property Value
Methods
Create(int, int, double, double)
Creates mixture-of-gaussian background subtractor
public static BackgroundSubtractorMOG Create(int history = 200, int nMixtures = 5, double backgroundRatio = 0.7, double noiseSigma = 0)
Parameters
historyintLength of the history.
nMixturesintNumber of Gaussian mixtures.
backgroundRatiodoubleBackground ratio.
noiseSigmadoubleNoise strength (standard deviation of the brightness or each color channel). 0 means some automatic value.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()