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
BackgroundSubtractorGMG
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
|
Improve this Doc
View Source
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
Implements