Class BackgroundSubtractorMOG
Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm
Inheritance
System.Object
BackgroundSubtractorMOG
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class BackgroundSubtractorMOG : BackgroundSubtractor, ICvPtrHolder
Properties
| Improve this Doc View SourceBackgroundRatio
Declaration
public double BackgroundRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
History
Declaration
public int History { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NMixtures
Declaration
public int NMixtures { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NoiseSigma
Declaration
public double NoiseSigma { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceCreate(Int32, Int32, Double, Double)
Creates mixture-of-gaussian background subtractor
Declaration
public static BackgroundSubtractorMOG Create(int history = 200, int nMixtures = 5, double backgroundRatio = 0.7, double noiseSigma = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | history | Length of the history. |
System.Int32 | nMixtures | Number of Gaussian mixtures. |
System.Double | backgroundRatio | Background ratio. |
System.Double | noiseSigma | Noise strength (standard deviation of the brightness or each color channel). 0 means some automatic value. |
Returns
Type | Description |
---|---|
BackgroundSubtractorMOG |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()