Show / Hide Table of Contents

Class BackgroundSubtractorMOG

Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
BackgroundSubtractor
BackgroundSubtractorMOG
Implements
ICvPtrHolder
Inherited Members
BackgroundSubtractor.Apply(InputArray, OutputArray, Double)
BackgroundSubtractor.GetBackgroundImage(OutputArray)
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class BackgroundSubtractorMOG : BackgroundSubtractor, ICvPtrHolder

Properties

| Improve this Doc View Source

BackgroundRatio

Declaration
public double BackgroundRatio { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

History

Declaration
public int History { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

NMixtures

Declaration
public int NMixtures { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

NoiseSigma

Declaration
public double NoiseSigma { get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Create(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
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX