Table of Contents

Class BackgroundSubtractorGSOC

Namespace
Emgu.CV.BgSegm
Assembly
Emgu.CV.dll

Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.

public class BackgroundSubtractorGSOC : UnmanagedObject, IDisposable, IBackgroundSubtractor, IAlgorithm
Inheritance
BackgroundSubtractorGSOC
Implements
Inherited Members
Extension Methods

Constructors

BackgroundSubtractorGSOC(CameraMotionCompensation, int, float, float, int, float, float, float, float, float, float)

Creates an instance of BackgroundSubtractorGSOC algorithm.

public BackgroundSubtractorGSOC(BackgroundSubtractorLSBP.CameraMotionCompensation mc = CameraMotionCompensation.None, int nSamples = 20, float replaceRate = 0.003, float propagationRate = 0.01, int hitsThreshold = 32, float alpha = 0.01, float beta = 0.0022, float blinkingSupressionDecay = 0.1, float blinkingSupressionMultiplier = 0.1, float noiseRemovalThresholdFacBG = 0.0004, float noiseRemovalThresholdFacFG = 0.0008)

Parameters

mc BackgroundSubtractorLSBP.CameraMotionCompensation

Whether to use camera motion compensation.

nSamples int

Number of samples to maintain at each point of the frame.

replaceRate float

Probability of replacing the old sample - how fast the model will update itself.

propagationRate float

Probability of propagating to neighbors.

hitsThreshold int

How many positives the sample must get before it will be considered as a possible replacement.

alpha float

Scale coefficient for threshold.

beta float

Bias coefficient for threshold.

blinkingSupressionDecay float

Blinking supression decay factor.

blinkingSupressionMultiplier float

Blinking supression multiplier.

noiseRemovalThresholdFacBG float

Strength of the noise removal for background points.

noiseRemovalThresholdFacFG float

Strength of the noise removal for foreground points.

Properties

AlgorithmPtr

Pointer to the unmanaged Algorithm object

public nint AlgorithmPtr { get; }

Property Value

nint

BackgroundSubtractorPtr

Pointer to the unmanaged BackgroundSubtractor object

public nint BackgroundSubtractorPtr { get; }

Property Value

nint

Methods

DisposeObject()

Release all the unmanaged memory associated with this background model.

protected override void DisposeObject()