BackgroundSubtractorKNN Constructor |
http://www.emgu.com
Create a K-nearest neighbors - based Background/Foreground Segmentation Algorithm.
Namespace: Emgu.CV.VideoSurveillanceAssembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
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