Show / Hide Table of Contents

Class BackgroundSubtractor

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
System.Object
DisposableObject
DisposableCvObject
Algorithm
BackgroundSubtractor
BackgroundSubtractorGMG
BackgroundSubtractorKNN
BackgroundSubtractorMOG
BackgroundSubtractorMOG2
Implements
ICvPtrHolder
Inherited Members
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.DisposeUnmanaged()
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.DisposeManaged()
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public abstract class BackgroundSubtractor : Algorithm, ICvPtrHolder

Methods

| Improve this Doc View Source

Apply(InputArray, OutputArray, Double)

the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.

Declaration
public virtual void Apply(InputArray image, OutputArray fgmask, double learningRate = -1)
Parameters
Type Name Description
InputArray image
OutputArray fgmask
System.Double learningRate
| Improve this Doc View Source

GetBackgroundImage(OutputArray)

computes a background image

Declaration
public virtual void GetBackgroundImage(OutputArray backgroundImage)
Parameters
Type Name Description
OutputArray backgroundImage

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX