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
DecisionThreshold
public double DecisionThreshold { get; set; }
Property Value
DefaultLearningRate
public double DefaultLearningRate { get; set; }
Property Value
MaxFeatures
public int MaxFeatures { get; set; }
Property Value
MaxVal
public double MaxVal { get; set; }
Property Value
MinVal
public double MinVal { get; set; }
Property Value
NumFrames
public int NumFrames { get; set; }
Property Value
QuantizationLevels
public int QuantizationLevels { get; set; }
Property Value
SmoothingRadius
public int SmoothingRadius { get; set; }
Property Value
UpdateBackgroundModel
public bool UpdateBackgroundModel { get; set; }
Property Value
Methods
Create(int, double)
Creates a GMG Background Subtractor
public static BackgroundSubtractorGMG Create(int initializationFrames = 120, double decisionThreshold = 0.8)
Parameters
initializationFramesintnumber of frames used to initialize the background models.
decisionThresholddoubleThreshold value, above which it is marked foreground, else background.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()