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
mcLSBPCameraMotionCompensationWhether to use camera motion compensation.
nSamplesintNumber of samples to maintain at each point of the frame.
replaceRatefloatProbability of replacing the old sample - how fast the model will update itself.
propagationRatefloatProbability of propagating to neighbors.
hitsThresholdintHow many positives the sample must get before it will be considered as a possible replacement.
alphafloatScale coefficient for threshold.
betafloatBias coefficient for threshold.
blinkingSupressionDecayfloatBlinking supression decay factor.
blinkingSupressionMultiplierfloatBlinking supression multiplier.
noiseRemovalThresholdFacBGfloatStrength of the noise removal for background points.
noiseRemovalThresholdFacFGfloatStrength of the noise removal for foreground points.