From 6206908868829beb0b4c29206e2508cea2ee74f5 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Fri, 1 Jun 2012 09:00:42 +0000 Subject: [PATCH] added nmixtures parameter to BackgroundSubtractorMOG2 (ticket #1914) --- modules/video/src/video_init.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/video/src/video_init.cpp b/modules/video/src/video_init.cpp index 159f3075c7..8f2812e895 100644 --- a/modules/video/src/video_init.cpp +++ b/modules/video/src/video_init.cpp @@ -57,6 +57,7 @@ CV_INIT_ALGORITHM(BackgroundSubtractorMOG, "BackgroundSubtractor.MOG", CV_INIT_ALGORITHM(BackgroundSubtractorMOG2, "BackgroundSubtractor.MOG2", obj.info()->addParam(obj, "history", obj.history); + obj.info()->addParam(obj, "nmixtures", obj.nmixtures); obj.info()->addParam(obj, "varThreshold", obj.varThreshold); obj.info()->addParam(obj, "detectShadows", obj.bShadowDetection));