BackgroundSubtractorGMG Class OpenCvSharp Class Library
The Base Class for Background/Foreground Segmentation. The class is only used to define the common interface for the whole family of background/foreground segmentation algorithms.
Inheritance Hierarchy

SystemObject
  OpenCvSharpDisposableObject
    OpenCvSharpDisposableCvObject
      OpenCvSharp.CPlusPlusAlgorithm
        OpenCvSharp.CPlusPlusBackgroundSubtractor
          OpenCvSharp.CPlusPlusBackgroundSubtractorGMG

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class BackgroundSubtractorGMG : BackgroundSubtractor

The BackgroundSubtractorGMG type exposes the following members.

Constructors

  NameDescription
Public methodBackgroundSubtractorGMG
the default constructor
Top
Properties

  NameDescription
Protected propertyAllocatedMemory
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.)
Protected propertyAllocatedMemorySize
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.)
Public propertyBackgroundPrior
Prior probability that any given pixel is a background pixel. A sensitivity parameter.
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyDecisionThreshold
Value above which pixel is determined to be FG.
Public propertyInfo
Algorithm information
(Inherited from Algorithm.)
Public propertyInfoPtr
Pointer to algorithm information (cv::AlgorithmInfo*)
(Overrides BackgroundSubtractorInfoPtr.)
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Public propertyLearningRate
Set between 0.0 and 1.0, determines how quickly features are "forgotten" from histograms.
Public propertyMaxFeatures
Total number of distinct colors to maintain in histogram.
Public propertyName
Returns the algorithm name
(Inherited from Algorithm.)
Public propertyNumInitializationFrames
Number of frames of video to use to initialize histograms.
Public propertyQuantizationLevels
Number of discrete levels in each channel to be used in histograms.
Public propertySmoothingRadius
Smoothing radius, in pixels, for cleaning up FG image.
Public propertyUpdateBackgroundModel
Perform background model update
Top
Methods

  NameDescription
Protected methodAllocGCHandle
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.)
Protected methodAllocMemory
Allocates the specified size of memory.
(Inherited from DisposableObject.)
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Clean up any resources being used.
(Overrides BackgroundSubtractorDispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetAlgorithm
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetBackgroundImage
computes a background image
(Inherited from BackgroundSubtractor.)
Public methodGetBool
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetDouble
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInt
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetMat
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetMatVector
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetParams
(Inherited from Algorithm.)
Public methodGetString
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetType (Inherited from Object.)
Public methodInitialize
Validate parameters and set up data structures for appropriate image size. Must call before running on data.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodParamHelp
(Inherited from Algorithm.)
Public methodParamType
(Inherited from Algorithm.)
Public methodRelease
Releases all inner buffers.
Public methodRun
Performs single-frame background subtraction and builds up a statistical background image
(Overrides BackgroundSubtractorRun(InputArray, OutputArray, Double).)
Public methodSetAlgorithm
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetBool
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetDouble
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetInt
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetMat
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetMatVector
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetString
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString
Returns a string that represents this Algorithm.
(Inherited from Algorithm.)
Top
Fields

  NameDescription
Protected fielddataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Top
See Also

Reference