fixed mog2
This commit is contained in:
parent
fb73e7b4bd
commit
72c35d3a89
@ -191,7 +191,7 @@ PERF_TEST_P(VideoMOG2Fixture, MOG2,
|
||||
TEST_CYCLE()
|
||||
{
|
||||
cv::Ptr<cv::BackgroundSubtractorMOG2> mog2 = createBackgroundSubtractorMOG2();
|
||||
mog2->set("detectShadows", false);
|
||||
mog2->setDetectShadows(false);
|
||||
foreground.release();
|
||||
|
||||
for (int i = 0; i < nFrame; i++)
|
||||
@ -253,7 +253,7 @@ PERF_TEST_P(Video_MOG2GetBackgroundImage, MOG2,
|
||||
TEST_CYCLE()
|
||||
{
|
||||
cv::Ptr<cv::BackgroundSubtractorMOG2> mog2 = createBackgroundSubtractorMOG2();
|
||||
mog2->set("detectShadows", false);
|
||||
mog2->setDetectShadows(false);
|
||||
foreground.release();
|
||||
background.release();
|
||||
for (int i = 0; i < nFrame; i++)
|
||||
|
@ -168,7 +168,7 @@ TEST_P(mog2, Update)
|
||||
cv::ocl::oclMat foreground = createMat_ocl(frame.size(), CV_8UC1, useRoi);
|
||||
|
||||
cv::Ptr<cv::BackgroundSubtractorMOG2> mog2_gold = createBackgroundSubtractorMOG2();
|
||||
mog2_gold->set("detectShadows", detectShadow);
|
||||
mog2_gold->setDetectShadows(detectShadow);
|
||||
cv::Mat foreground_gold;
|
||||
|
||||
for (int i = 0; i < 10; ++i)
|
||||
@ -210,7 +210,7 @@ TEST_P(mog2, getBackgroundImage)
|
||||
cv::ocl::oclMat foreground;
|
||||
|
||||
cv::Ptr<cv::BackgroundSubtractorMOG2> mog2_gold = createBackgroundSubtractorMOG2();
|
||||
mog2_gold->set("detectShadows", detectShadow);
|
||||
mog2_gold->setDetectShadows(detectShadow);
|
||||
cv::Mat foreground_gold;
|
||||
|
||||
for (int i = 0; i < 10; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user