Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RZ_A2M_Mbed_samples
Motion Analysis
[Video Analysis]
Data Structures | |
class | BackgroundSubtractor |
Base class for background/foreground segmentation. More... | |
class | BackgroundSubtractorMOG2 |
Gaussian Mixture-based Background/Foreground Segmentation Algorithm. More... | |
class | BackgroundSubtractorKNN |
K-nearest neigbours - based Background/Foreground Segmentation Algorithm. More... | |
Functions | |
CV_EXPORTS_W Ptr < BackgroundSubtractorMOG2 > | createBackgroundSubtractorMOG2 (int history=500, double varThreshold=16, bool detectShadows=true) |
Creates MOG2 Background Subtractor. | |
CV_EXPORTS_W Ptr < BackgroundSubtractorKNN > | createBackgroundSubtractorKNN (int history=500, double dist2Threshold=400.0, bool detectShadows=true) |
Creates KNN Background Subtractor. |
Function Documentation
CV_EXPORTS_W Ptr<BackgroundSubtractorKNN> cv::createBackgroundSubtractorKNN | ( | int | history = 500 , |
double | dist2Threshold = 400.0 , |
||
bool | detectShadows = true |
||
) |
Creates KNN Background Subtractor.
- Parameters:
-
history Length of the history. dist2Threshold 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 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.
CV_EXPORTS_W Ptr<BackgroundSubtractorMOG2> cv::createBackgroundSubtractorMOG2 | ( | int | history = 500 , |
double | varThreshold = 16 , |
||
bool | detectShadows = true |
||
) |
Creates MOG2 Background Subtractor.
- Parameters:
-
history Length of the history. varThreshold Threshold on the squared Mahalanobis distance between the pixel and the model to decide whether a pixel is well described by the background model. This parameter does not affect the background update. detectShadows 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.
Generated on Tue Jul 12 2022 18:20:22 by
