![]() Parameter description: parameter image is the image to be processed the foreground image obtained by fgmask (binarized) learningRate(0~1) configures the background update method, 0 means no update, 1 means update according to the last frame, negative number means Automatic update, the higher the number (0~1), the faster the background update. ![]() bShadowDetection – Parameter defining whether shadow detection should be enabled ( true or false).Ĭ++: void BackgroundSubtractorMOG2 :: operator()(InputArray image, OutputArray fgmask, double learningRate =-1).A typical value could be 4 sigma, that is, varThreshold=4*4=16 (see Tb?). ![]() This parameter does not affect the background update. varThreshold – Threshold on the squared Mahalanobis distance to decide whether it is well described by the background model (see Cthr?).Use the specified value to construct the object of BackgroundSubtractorMOG2. C++: BackgroundSubtractorMOG2 :: BackgroundSubtractorMOG2(int history, float varThreshold, bool bShadowDetection =true) Use the default values to construct the BackgroundSubtractorMOG2 object. The constructor of BackgroundSubtractorMOG2Ĭ++: BackgroundSubtractorMOG2 :: BackgroundSubtractorMOG2() BackgroundSubtractorMOG2 important methodsġ.
0 Comments
Leave a Reply. |