Click or drag to resize

BackgroundSubtractorKNNCreate Method

Creates KNN Background Subtractor

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

Parameters

history (Optional)
Type: SystemInt32
Length of the history.
dist2Threshold (Optional)
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 (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: BackgroundSubtractorKNN

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

See Also