Show / Hide Table of Contents

Class BackgroundSubtractorGMG

Background Subtractor module. Takes a series of images and returns a sequence of mask (8UC1) images of the same size, where 255 indicates Foreground and 0 represents Background.

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
BackgroundSubtractor
BackgroundSubtractorGMG
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 BackgroundSubtractorGMG : BackgroundSubtractor, ICvPtrHolder

Properties

| Improve this Doc View Source

BackgroundPrior

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

DecisionThreshold

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

DefaultLearningRate

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

MaxFeatures

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

MaxVal

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

MinVal

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

NumFrames

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

QuantizationLevels

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

SmoothingRadius

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

UpdateBackgroundModel

Declaration
public bool UpdateBackgroundModel { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Create(Int32, Double)

Creates a GMG Background Subtractor

Declaration
public static BackgroundSubtractorGMG Create(int initializationFrames = 120, double decisionThreshold = 0.8)
Parameters
Type Name Description
System.Int32 initializationFrames

number of frames used to initialize the background models.

System.Double decisionThreshold

Threshold value, above which it is marked foreground, else background.

Returns
Type Description
BackgroundSubtractorGMG
| 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