CudaBackgroundSubtractorMOG2 Constructor |
http://www.emgu.com
Create a Gaussian Mixture-based Background/Foreground Segmentation model
Namespace:
Emgu.CV.Cuda
Assembly:
Emgu.CV.Platform.NetStandard (in Emgu.CV.Platform.NetStandard.dll) Version: 4.3.0.3890
Syntaxpublic CudaBackgroundSubtractorMOG2(
int history = 500,
double varThreshold = 16,
bool detectShadows = true
)
Public Sub New (
Optional history As Integer = 500,
Optional varThreshold As Double = 16,
Optional detectShadows As Boolean = true
)
public:
CudaBackgroundSubtractorMOG2(
int history = 500,
double varThreshold = 16,
bool detectShadows = true
)
new :
?history : int *
?varThreshold : float *
?detectShadows : bool
(* Defaults:
let _history = defaultArg history 500
let _varThreshold = defaultArg varThreshold 16
let _detectShadows = defaultArg detectShadows true
*)
-> CudaBackgroundSubtractorMOG2
Parameters
- history (Optional)
- Type: SystemInt32
Length of the history. - varThreshold (Optional)
- Type: SystemDouble
Threshold on the squared Mahalanobis distance between the pixel and the model to decide whether a pixel is well described by the background model. This parameter does not affect the background update. - detectShadows (Optional)
- Type: SystemBoolean
If true, the algorithm will detect shadows and mark them. It decreases the speed a bit, so if you do not need this feature, set the parameter to false.
See Also