Click or drag to resize
BackgroundSubtractorKNN Constructor
http://www.emgu.com
Create a K-nearest neighbors - based Background/Foreground Segmentation Algorithm.

Namespace: Emgu.CV.VideoSurveillance
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntax
public BackgroundSubtractorKNN(
	int history,
	double dist2Threshold,
	bool detectShadows
)

Parameters

history
Type: SystemInt32
Length of the history.
dist2Threshold
Type: SystemDouble
Threshold on the squared distance between the pixel and the sample to decide whether a pixel is close to that sample. This parameter does not affect the background update.
detectShadows
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