Merge branch 'bgfg-gmg-optimized' into bgfg-gmg-merged

This commit is contained in:
Vladislav Vinogradov
2012-08-09 14:55:36 +04:00
6 changed files with 356 additions and 590 deletions

View File

@@ -361,10 +361,9 @@ GPU_PERF_TEST(GMG, cv::gpu::DeviceInfo, std::string, Channels, MaxFeatures)
cv::BackgroundSubtractorGMG gmg;
gmg.set("maxFeatures", maxFeatures);
gmg.initializeType(frame, 0.0, 255.0);
gmg.initialize(frame.size(), 0.0, 255.0);
gmg(frame, fgmask);
gmg.updateBackgroundModel(zeros);
for (int i = 0; i < 150; ++i)
{
@@ -387,7 +386,6 @@ GPU_PERF_TEST(GMG, cv::gpu::DeviceInfo, std::string, Channels, MaxFeatures)
startTimer(); next();
gmg(frame, fgmask);
gmg.updateBackgroundModel(zeros);
stopTimer();
}
}