cv.BackgroundSubtractorKNN - MATLAB File Help | Go to online doc for cv.BackgroundSubtractorKNN |
K-nearest neighbours based Background/Foreground Segmentation Algorithm
The class implements the K-nearest neighbours background subtraction described in [Zivkovic2006]. Very efficient if number of foreground pixels is low.
[Zivkovic2006]:
Zoran Zivkovic and Ferdinand van der Heijden. "Efficient adaptive density estimation per image pixel for the task of background subtraction". Pattern recognition letters, 27(7):773-780, 2006. PDF.
[Prati03detectingmoving]:
Andrea Prati, Ivana Mikic, Mohan M. Trivedi, Rita Cucchiara. "Detecting Moving Shadows: Algorithms and Evaluation", IEEE PAMI, 2003.
Superclasses | handle |
Sealed | false |
Construct on load | false |
BackgroundSubtractorKNN | Creates KNN Background Subtractor |
DetectShadows | The shadow detection flag. |
Dist2Threshold | The threshold on the squared distance between the pixel and the |
History | The number of last frames that affect the background model. |
KNNSamples | The number of neighbours, the k in the kNN. |
NSamples | The number of data samples in the background model. |
ShadowThreshold | The shadow threshold. |
ShadowValue | The shadow value. |
id | Object ID |
addlistener | Add listener for event. | |
apply | Updates the background model and computes the foreground mask | |
delete | Destructor | |
eq | == (EQ) Test handle equality. | |
findobj | Find objects matching specified conditions. | |
findprop | Find property of MATLAB handle object. | |
ge | >= (GE) Greater than or equal relation for handles. | |
getBackgroundImage | Computes a background image | |
gt | > (GT) Greater than relation for handles. | |
Sealed | isvalid | Test handle validity. |
le | <= (LE) Less than or equal relation for handles. | |
listener | Add listener for event without binding the listener to the source object. | |
lt | < (LT) Less than relation for handles. | |
ne | ~= (NE) Not equal relation for handles. | |
notify | Notify listeners of event. |
ObjectBeingDestroyed | Notifies listeners that a particular object has been destroyed. |