Click or drag to resize

BackgroundSubtractorMOG2 Constructor
Create an "Improved adaptive Gaussian mixture model for background subtraction".

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public BackgroundSubtractorMOG2(
	int history = 500,
	float varThreshold = 16f,
	bool shadowDetection = true


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