Table of Contents

Class BackgroundSubtractorGSOC

Namespace
OpenCvSharp
Assembly
OpenCvSharp.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. This algorithm demonstrates better performance on CDNET 2014 dataset compared to other algorithms in OpenCV.

public class BackgroundSubtractorGSOC : BackgroundSubtractor, IDisposable
Inheritance
BackgroundSubtractorGSOC
Implements
Inherited Members

Methods

Create(LSBPCameraMotionCompensation, int, float, float, int, float, float, float, float, float, float)

Creates an instance of BackgroundSubtractorGSOC algorithm.

public static BackgroundSubtractorGSOC Create(LSBPCameraMotionCompensation mc = LSBPCameraMotionCompensation.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 LSBPCameraMotionCompensation

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.

Returns

BackgroundSubtractorGSOC