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