BackgroundSubtractorKNN Properties |
The BackgroundSubtractorKNN type exposes the following members.
| Name | Description | |
|---|---|---|
| AlgorithmPtr |
Pointer to the unmanaged Algorithm object
| |
| BackgroundSubtractorPtr |
Pointer to the unmanaged BackgroundSubtractor object
| |
| DetectShadows |
If true, the algorithm detects shadows and marks them.
| |
| Dist2Threshold |
The threshold on the squared distance between the pixel and the sample to decide whether a pixel is close to a data sample.
| |
| History |
The number of last frames that affect the background model
| |
| KNNSamples |
The number of neighbours, the k in the kNN. K is the number of samples that need to be within dist2Threshold in order to decide that pixel is matching the kNN background model.
| |
| NSamples |
The number of data samples in the background model
| |
| Ptr |
Pointer to the unmanaged object
(Inherited from UnmanagedObject.) | |
| ShadowThreshold |
A shadow is detected if pixel is a darker version of the background. The shadow threshold (Tau in the paper) is a threshold defining how much darker the shadow can be. Tau= 0.5 means that if a pixel is more than twice darker then it is not shadow.
| |
| ShadowValue |
Shadow value is the value used to mark shadows in the foreground mask. Default value is 127. Value 0 in the mask always means background, 255 means foreground.
|