Loading...
Searching...
No Matches
Detailed Description
Creates mixture-of-gaussian background subtractor.
Creates MOG2 Background Subtractor.
Function Documentation
◆ createBackgroundSubtractorMOG()
int nmixtures = 5,
double backgroundRatio = 0.7,
double noiseSigma = 0 )
#include <opencv2/cudabgsegm.hpp>
Creates mixture-of-gaussian background subtractor.
- Parameters
-
history Length of the history.
nmixtures Number of Gaussian mixtures.
backgroundRatio Background ratio.
noiseSigma Noise strength (standard deviation of the brightness or each color channel). 0 means some automatic value.
◆ createBackgroundSubtractorMOG2()
double varThreshold = 16,
bool detectShadows = true )
#include <opencv2/cudabgsegm.hpp>
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 Thu Dec 5 2024 12:18:48 for OpenCV by
doxygen
1.12.0