Ask Your Question
0

What method used in OpenCV to get initial mean and covariance in command cv2.BackgroundSubtractorMOG

asked 2015-05-26 05:41:29 -0500

Shiloh gravatar image

updated 2015-05-26 09:05:27 -0500

thdrksdfthmn gravatar image

Hi, I want to know what method using for get initial mean and covariance in command cv2.BackgroundSubtractorMOG.. I'm read the c++ program from here but I don't see how they get initial mean and covariance for each Gaussian distribution, and what this command bgmodel.create( 1, frameSize.height * frameSize.width * nmixtures * (2 + 2 * nchannels), CV_32F ); used for? And in KaewTraKulPong Bowden paper "An Improved Adaptive Background Mixture Model for Real-time Tracking with Shadow Detection" they have equation for L recent window, I didn't find code for update equation using L recent window, did the dev used it?

edit retag flag offensive close merge delete

Comments

create should contain the initialization... And it is used for initialization

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-05-26 07:06:26 -0500 )edit

But how? Can you explain to me?

Shiloh gravatar imageShiloh ( 2015-05-26 07:39:44 -0500 )edit

bgmodel seems to be a cv::Mat, so see the create function docs The "global" variables are in background_segm.hpp, maybe this doc will also help

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-05-26 09:10:11 -0500 )edit

thanks for the info, I'll read it..

Shiloh gravatar imageShiloh ( 2015-05-26 10:15:02 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-28 11:18:42 -0500

Shiloh gravatar image

The initialization for mean and covariance for each Gaussian distribution is 0 as told by the author in line 124

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-05-26 05:41:29 -0500

Seen: 64 times

Last updated: Jun 28 '15