Table of Contents

Class BackgroundSubtractorGMG

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

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.

public class BackgroundSubtractorGMG : BackgroundSubtractor, IDisposable, ICvPtrHolder
Inheritance
BackgroundSubtractorGMG
Implements
Inherited Members

Properties

BackgroundPrior

public double BackgroundPrior { get; set; }

Property Value

double

DecisionThreshold

public double DecisionThreshold { get; set; }

Property Value

double

DefaultLearningRate

public double DefaultLearningRate { get; set; }

Property Value

double

MaxFeatures

public int MaxFeatures { get; set; }

Property Value

int

MaxVal

public double MaxVal { get; set; }

Property Value

double

MinVal

public double MinVal { get; set; }

Property Value

double

NumFrames

public int NumFrames { get; set; }

Property Value

int

QuantizationLevels

public int QuantizationLevels { get; set; }

Property Value

int

SmoothingRadius

public int SmoothingRadius { get; set; }

Property Value

int

UpdateBackgroundModel

public bool UpdateBackgroundModel { get; set; }

Property Value

bool

Methods

Create(int, double)

Creates a GMG Background Subtractor

public static BackgroundSubtractorGMG Create(int initializationFrames = 120, double decisionThreshold = 0.8)

Parameters

initializationFrames int

number of frames used to initialize the background models.

decisionThreshold double

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

Returns

BackgroundSubtractorGMG

DisposeManaged()

Releases managed resources

protected override void DisposeManaged()