Click or drag to resize

BackgroundSubtractorMOG2Create Method

Creates MOG2 Background Subtractor.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static BackgroundSubtractorMOG2 Create(
	int history = 500,
	double varThreshold = 16,
	bool detectShadows = true
)

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.

Return Value

Type: BackgroundSubtractorMOG2

[Missing <returns> documentation for "M:OpenCvSharp.BackgroundSubtractorMOG2.Create(System.Int32,System.Double,System.Boolean)"]

See Also