Skip to content

Commit b84cbee

Browse files
committed
calib3d(perf): disable SGBM tests in debug mode
because they are too long (takes minutes)
1 parent f6a33c4 commit b84cbee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/calib3d/perf/perf_stereosgbm.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Redistribution and use in source and binary forms, with or without modification,
1212
* are permitted provided that the following conditions are met :
1313
*
14-
* *Redistributions of source code must retain the above copyright notice,
14+
* * Redistributions of source code must retain the above copyright notice,
1515
* this list of conditions and the following disclaimer.
1616
*
1717
* * Redistributions in binary form must reproduce the above copyright notice,
@@ -38,20 +38,20 @@
3838

3939
namespace cvtest
4040
{
41-
42-
using std::tr1::tuple;
43-
using std::tr1::get;
4441
using namespace perf;
4542
using namespace testing;
46-
using namespace cv;
4743

48-
void MakeArtificialExample(RNG rng, Mat& dst_left_view, Mat& dst_view);
44+
static void MakeArtificialExample(RNG rng, Mat& dst_left_view, Mat& dst_view);
4945

5046
CV_ENUM(SGBMModes, StereoSGBM::MODE_SGBM, StereoSGBM::MODE_SGBM_3WAY, StereoSGBM::MODE_HH4);
5147
typedef tuple<Size, int, SGBMModes> SGBMParams;
5248
typedef TestBaseWithParam<SGBMParams> TestStereoCorresp;
5349

50+
#ifndef _DEBUG
5451
PERF_TEST_P( TestStereoCorresp, SGBM, Combine(Values(Size(1280,720),Size(640,480)), Values(256,128), SGBMModes::all()) )
52+
#else
53+
PERF_TEST_P( TestStereoCorresp, DISABLED_TooLongInDebug_SGBM, Combine(Values(Size(1280,720),Size(640,480)), Values(256,128), SGBMModes::all()) )
54+
#endif
5555
{
5656
RNG rng(0);
5757

0 commit comments

Comments
 (0)