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.0.1.3373 (4.0.1.3373)
Syntaxpublic BackgroundSubtractorKNN(
int history,
double dist2Threshold,
bool detectShadows
)
Public Sub New (
history As Integer,
dist2Threshold As Double,
detectShadows As Boolean
)
public:
BackgroundSubtractorKNN(
int history,
double dist2Threshold,
bool detectShadows
)
new :
history : int *
dist2Threshold : float *
detectShadows : bool -> BackgroundSubtractorKNN
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