BackgroundSubtractorGSOC Constructor |
http://www.emgu.com
Creates an instance of BackgroundSubtractorGSOC algorithm.
Namespace:
Emgu.CV.BgSegm
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntaxpublic BackgroundSubtractorGSOC(
BackgroundSubtractorLSBPCameraMotionCompensation mc = BackgroundSubtractorLSBPCameraMotionCompensation.None,
int nSamples = 20,
float replaceRate = 0.003f,
float propagationRate = 0.01f,
int hitsThreshold = 32,
float alpha = 0.01f,
float beta = 0.0022f,
float blinkingSupressionDecay = 0.1f,
float blinkingSupressionMultiplier = 0.1f,
float noiseRemovalThresholdFacBG = 0.0004f,
float noiseRemovalThresholdFacFG = 0.0008f
)
Public Sub New (
Optional mc As BackgroundSubtractorLSBPCameraMotionCompensation = BackgroundSubtractorLSBPCameraMotionCompensation.None,
Optional nSamples As Integer = 20,
Optional replaceRate As Single = 0.003F,
Optional propagationRate As Single = 0.01F,
Optional hitsThreshold As Integer = 32,
Optional alpha As Single = 0.01F,
Optional beta As Single = 0.0022F,
Optional blinkingSupressionDecay As Single = 0.1F,
Optional blinkingSupressionMultiplier As Single = 0.1F,
Optional noiseRemovalThresholdFacBG As Single = 0.0004F,
Optional noiseRemovalThresholdFacFG As Single = 0.0008F
)
public:
BackgroundSubtractorGSOC(
BackgroundSubtractorLSBPCameraMotionCompensation mc = BackgroundSubtractorLSBPCameraMotionCompensation::None,
int nSamples = 20,
float replaceRate = 0.003f,
float propagationRate = 0.01f,
int hitsThreshold = 32,
float alpha = 0.01f,
float beta = 0.0022f,
float blinkingSupressionDecay = 0.1f,
float blinkingSupressionMultiplier = 0.1f,
float noiseRemovalThresholdFacBG = 0.0004f,
float noiseRemovalThresholdFacFG = 0.0008f
)
new :
?mc : BackgroundSubtractorLSBPCameraMotionCompensation *
?nSamples : int *
?replaceRate : float32 *
?propagationRate : float32 *
?hitsThreshold : int *
?alpha : float32 *
?beta : float32 *
?blinkingSupressionDecay : float32 *
?blinkingSupressionMultiplier : float32 *
?noiseRemovalThresholdFacBG : float32 *
?noiseRemovalThresholdFacFG : float32
(* Defaults:
let _mc = defaultArg mc BackgroundSubtractorLSBPCameraMotionCompensation.None
let _nSamples = defaultArg nSamples 20
let _replaceRate = defaultArg replaceRate 0.003f
let _propagationRate = defaultArg propagationRate 0.01f
let _hitsThreshold = defaultArg hitsThreshold 32
let _alpha = defaultArg alpha 0.01f
let _beta = defaultArg beta 0.0022f
let _blinkingSupressionDecay = defaultArg blinkingSupressionDecay 0.1f
let _blinkingSupressionMultiplier = defaultArg blinkingSupressionMultiplier 0.1f
let _noiseRemovalThresholdFacBG = defaultArg noiseRemovalThresholdFacBG 0.0004f
let _noiseRemovalThresholdFacFG = defaultArg noiseRemovalThresholdFacFG 0.0008f
*)
-> BackgroundSubtractorGSOC
Parameters
- mc (Optional)
- Type: Emgu.CV.BgSegmBackgroundSubtractorLSBPCameraMotionCompensation
Whether to use camera motion compensation. - nSamples (Optional)
- Type: SystemInt32
Number of samples to maintain at each point of the frame. - replaceRate (Optional)
- Type: SystemSingle
Probability of replacing the old sample - how fast the model will update itself. - propagationRate (Optional)
- Type: SystemSingle
Probability of propagating to neighbors. - hitsThreshold (Optional)
- Type: SystemInt32
How many positives the sample must get before it will be considered as a possible replacement. - alpha (Optional)
- Type: SystemSingle
Scale coefficient for threshold. - beta (Optional)
- Type: SystemSingle
Bias coefficient for threshold. - blinkingSupressionDecay (Optional)
- Type: SystemSingle
Blinking supression decay factor. - blinkingSupressionMultiplier (Optional)
- Type: SystemSingle
Blinking supression multiplier. - noiseRemovalThresholdFacBG (Optional)
- Type: SystemSingle
Strength of the noise removal for background points. - noiseRemovalThresholdFacFG (Optional)
- Type: SystemSingle
Strength of the noise removal for foreground points.
See Also