First time here? Check out the FAQ!
answered 2016-08-31 15:34:10 -0600
If you want the MOG to work, you should
#include "opencv2/bgsegm.hpp"
and then
pMOG = bgsegm::createBackgroundSubtractorMOG();