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
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
The BackgroundSubtractorGMG type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BackgroundSubtractorGMG |
the default constructor
|
Properties
Name | Description | |
---|---|---|
AllocatedMemory |
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.) | |
AllocatedMemorySize |
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.) | |
BackgroundPrior |
Prior probability that any given pixel is a background pixel. A sensitivity parameter.
| |
CvPtr |
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.) | |
DecisionThreshold |
Value above which pixel is determined to be FG.
| |
Info |
Algorithm information
(Inherited from Algorithm.) | |
InfoPtr |
Pointer to algorithm information (cv::AlgorithmInfo*)
(Overrides BackgroundSubtractorInfoPtr.) | |
IsDisposed |
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.) | |
IsEnabledDispose |
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.) | |
LearningRate |
Set between 0.0 and 1.0, determines how quickly features are "forgotten" from histograms.
| |
MaxFeatures |
Total number of distinct colors to maintain in histogram.
| |
Name |
Returns the algorithm name
(Inherited from Algorithm.) | |
NumInitializationFrames |
Number of frames of video to use to initialize histograms.
| |
QuantizationLevels |
Number of discrete levels in each channel to be used in histograms.
| |
SmoothingRadius |
Smoothing radius, in pixels, for cleaning up FG image.
| |
UpdateBackgroundModel |
Perform background model update
|
Methods
Name | Description | |
---|---|---|
AllocGCHandle |
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.) | |
AllocMemory |
Allocates the specified size of memory.
(Inherited from DisposableObject.) | |
Dispose |
Releases the resources
(Inherited from DisposableObject.) | |
Dispose(Boolean) |
Clean up any resources being used.
(Overrides BackgroundSubtractorDispose(Boolean).) | |
Equals | (Inherited from Object.) | |
Finalize |
Destructor
(Inherited from DisposableObject.) | |
GetAlgorithm |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetBackgroundImage |
computes a background image
(Inherited from BackgroundSubtractor.) | |
GetBool |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetDouble |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetHashCode | (Inherited from Object.) | |
GetInt |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetMat |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetMatVector |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetParams | (Inherited from Algorithm.) | |
GetString |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetType | (Inherited from Object.) | |
Initialize |
Validate parameters and set up data structures for appropriate image size.
Must call before running on data.
| |
MemberwiseClone | (Inherited from Object.) | |
NotifyMemoryPressure |
Notifies the allocated size of memory.
(Inherited from DisposableObject.) | |
ParamHelp | (Inherited from Algorithm.) | |
ParamType | (Inherited from Algorithm.) | |
Release |
Releases all inner buffers.
| |
Run |
Performs single-frame background subtraction and builds up a statistical background image
(Overrides BackgroundSubtractorRun(InputArray, OutputArray, Double).) | |
SetAlgorithm |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetBool |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetDouble |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetInt |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetMat |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetMatVector |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetString |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
ThrowIfDisposed |
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.) | |
ToString |
Returns a string that represents this Algorithm.
(Inherited from Algorithm.) |
Fields
Name | Description | |
---|---|---|
dataHandle |
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.) | |
ptr |
Data pointer
(Inherited from DisposableCvObject.) |
See Also