Table of Contents

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

double

History

public int History { get; set; }

Property Value

int

NMixtures

public int NMixtures { get; set; }

Property Value

int

NoiseSigma

public double NoiseSigma { get; set; }

Property Value

double

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

history int

Length of the history.

nMixtures int

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.

Returns

BackgroundSubtractorMOG

DisposeManaged()

Releases managed resources

protected override void DisposeManaged()