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
Inheritance
BackgroundSubtractorGMG
Implements
Inherited Members

Properties

BackgroundPrior

Prior probability that each individual pixel is a background pixel.

DecisionThreshold

Value of decision threshold. Decision value is the value above which a pixel is determined to be foreground.

DefaultLearningRate

The learning rate of the algorithm. It lies between 0.0 and 1.0. It determines how quickly features are "forgotten" from histograms.

MaxFeatures

Total number of distinct colors to maintain in histogram.

MaxVal

Maximum value taken on by pixels in image sequence, e.g. 1.0 or 255.

MinVal

Minimum value taken on by pixels in image sequence. Usually 0.

NumFrames

Number of frames used to initialize the background model.

QuantizationLevels

The parameter used for quantization of color-space. It is the number of discrete levels in each channel to be used in histograms.

SmoothingRadius

Kernel radius used for morphological operations.

UpdateBackgroundModel

Status of background model update.

Methods

Create(int, double)

Creates a GMG Background Subtractor