详解OpenCV的视频背景/前景分割(背景建模/前景提取)类cv::bgsegm::BackgroundSubtractorMOG,并利用它实现对道路监控视频前景/背景的提取
cv::bgsegm::BackgroundSubtractorMOG是基于高斯混合模型的背景与前景分割算法。具体的算法原理可以参考下面这篇论文:PakornKaewTraKulPongandRichardBowden.Animprovedadaptivebackgroundmixturemodelforreal-timetrackingwithshadowdetection.InVideo-Ba