Click or drag to resize

BackgroundSubtractorKNN Constructor

http://www.emgu.com
Create a K-nearest neighbors - based Background/Foreground Segmentation Algorithm.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
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