BackgroundSubtractorMOG2 Constructor |
http://www.emgu.com
Create an "Improved adaptive Gaussian mixture model for background subtraction".
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic BackgroundSubtractorMOG2(
int history = 500,
float varThreshold = 16f,
bool shadowDetection = true
)
Public Sub New (
Optional history As Integer = 500,
Optional varThreshold As Single = 16F,
Optional shadowDetection As Boolean = true
)
public:
BackgroundSubtractorMOG2(
int history = 500,
float varThreshold = 16f,
bool shadowDetection = true
)
new :
?history : int *
?varThreshold : float32 *
?shadowDetection : bool
(* Defaults:
let _history = defaultArg history 500
let _varThreshold = defaultArg varThreshold 16f
let _shadowDetection = defaultArg shadowDetection true
*)
-> BackgroundSubtractorMOG2
Parameters
- history (Optional)
- Type: SystemInt32
The length of the history. - varThreshold (Optional)
- Type: SystemSingle
The maximum allowed number of mixture components. Actual number is determined dynamically per pixel. - shadowDetection (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