First time here? Check out the FAQ!
answered 2016-04-15 00:04:00 -0600
bgsegm::createBackgroundSubtractorMOG() is the correct code to use. your "undefined reference" error is from the linker, you will have to add opencv_bgsegm310.lib to your linker libs list
bgsegm::createBackgroundSubtractorMOG()