OpenCV:BackgroundSubtraction
lastmod 2018-08-17created 2015-04-3011 edits
Gaussian Background Detection Algorithm
Part of the opencv-2.4.9/modules/legacy/include/opencv2/legacy.hpp file:
/*
Interface of Gaussian mixture algorithm
"An improved adaptive background mixture model for real-time tracking with shadow detection"
P. KadewTraKuPong and R. Bowden,
Proc. 2nd European Workshp on Advanced Video-Based Surveillance Systems, 2001."
http://personal.ee.surrey.ac.uk/Personal/R.Bowden/publications/avbs01/avbs01.pdf
*/
/* Note: "MOG" == "Mixture Of Gaussians": */
#define CV_BGFG_MOG_MAX_NGAUSSIANS 500
/* default parameters of gaussian background detection algorithm */
#define CV_BGFG_MOG_BACKGROUND_THRESHOLD 0.7 /* threshold sum of weights for background test */
#define CV_BGFG_MOG_STD_THRESHOLD 2.5 /* lambda=2.5 is 99% */
#define CV_BGFG_MOG_WINDOW_SIZE 200 /* Learning rate; alpha = 1/CV_GBG_WINDOW_SIZE */
#define CV_BGFG_MOG_NGAUSSIANS 5 /* = K = number of Gaussians in mixture */
#define CV_BGFG_MOG_WEIGHT_INIT 0.05
#define CV_BGFG_MOG_SIGMA_INIT 30
#define CV_BGFG_MOG_MINAREA 15.f
Favorite site
- [Recommended] How to Use Background Subtraction Methods 2
- [Recommended] Tutorial: Background detection with OpenCV 3
- OpenCV 3.0.0-dev: How to Use Background Subtraction Methods
- Background Subtraction using MOG, MOG2, GMG
- OpenCV 3.0.0-dev documentation: Background Segmentation
- cv::BackgroundSubtractorMOG2 Class Reference
- Motion Analysis and Object Tracking
- Cannot set user parameters in BackgroundSubtractorMOG2
- OpenCV separating foreground and objects
- OpenCV parts of an image and segmentation - background removal
- bgslibrary (A Background Subtraction Library)
- Computing a background image with cvAcc (background extraction)
- OpenCV #5-5 Example (extracting foreground objects with the GrabCut algorithm)
- Foreground/background separation techniques for object tracking