Class BackgroundSubtractorGSOC
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.CameraMotionCompensationWhether to use camera motion compensation.
nSamples
intNumber of samples to maintain at each point of the frame.
replaceRate
floatProbability of replacing the old sample - how fast the model will update itself.
propagationRate
floatProbability of propagating to neighbors.
hitsThreshold
intHow many positives the sample must get before it will be considered as a possible replacement.
alpha
floatScale coefficient for threshold.
beta
floatBias coefficient for threshold.
blinkingSupressionDecay
floatBlinking supression decay factor.
blinkingSupressionMultiplier
floatBlinking supression multiplier.
noiseRemovalThresholdFacBG
floatStrength of the noise removal for background points.
noiseRemovalThresholdFacFG
floatStrength of the noise removal for foreground points.
Properties
AlgorithmPtr
Pointer to the unmanaged Algorithm object
public nint AlgorithmPtr { get; }
Property Value
BackgroundSubtractorPtr
Pointer to the unmanaged BackgroundSubtractor object
public nint BackgroundSubtractorPtr { get; }
Property Value
Methods
DisposeObject()
Release all the unmanaged memory associated with this background model.
protected override void DisposeObject()