BackgroundSubtractor 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
          OpenCvSharp.CPlusPlusBackgroundSubtractorMOG
          OpenCvSharp.CPlusPlusBackgroundSubtractorMOG2

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

public class BackgroundSubtractor : Algorithm

The BackgroundSubtractor type exposes the following members.

Constructors

  NameDescription
Public methodBackgroundSubtractor
Initializes a new instance of the BackgroundSubtractor class
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 propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyInfo
Algorithm information
(Inherited from Algorithm.)
Public propertyInfoPtr
Pointer to algorithm information (cv::AlgorithmInfo*)
(Overrides AlgorithmInfoPtr.)
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 propertyName
Returns the algorithm name
(Inherited from Algorithm.)
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)
Releases the resources
(Overrides AlgorithmDispose(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
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.)
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
Clean up any resources being used.
(Inherited from Algorithm.)
Public methodRun
the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.
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