mirror of
https://github.com/opencv/opencv.git
synced 2025-08-01 02:18:01 +08:00
calib3d(perf): disable SGBM tests in debug mode
because they are too long (takes minutes)
This commit is contained in:
parent
f6a33c4826
commit
b84cbeec8c
@ -11,7 +11,7 @@
|
|||||||
* Redistribution and use in source and binary forms, with or without modification,
|
* Redistribution and use in source and binary forms, with or without modification,
|
||||||
* are permitted provided that the following conditions are met :
|
* are permitted provided that the following conditions are met :
|
||||||
*
|
*
|
||||||
* *Redistributions of source code must retain the above copyright notice,
|
* * Redistributions of source code must retain the above copyright notice,
|
||||||
* this list of conditions and the following disclaimer.
|
* this list of conditions and the following disclaimer.
|
||||||
*
|
*
|
||||||
* * Redistributions in binary form must reproduce the above copyright notice,
|
* * Redistributions in binary form must reproduce the above copyright notice,
|
||||||
@ -38,20 +38,20 @@
|
|||||||
|
|
||||||
namespace cvtest
|
namespace cvtest
|
||||||
{
|
{
|
||||||
|
|
||||||
using std::tr1::tuple;
|
|
||||||
using std::tr1::get;
|
|
||||||
using namespace perf;
|
using namespace perf;
|
||||||
using namespace testing;
|
using namespace testing;
|
||||||
using namespace cv;
|
|
||||||
|
|
||||||
void MakeArtificialExample(RNG rng, Mat& dst_left_view, Mat& dst_view);
|
static void MakeArtificialExample(RNG rng, Mat& dst_left_view, Mat& dst_view);
|
||||||
|
|
||||||
CV_ENUM(SGBMModes, StereoSGBM::MODE_SGBM, StereoSGBM::MODE_SGBM_3WAY, StereoSGBM::MODE_HH4);
|
CV_ENUM(SGBMModes, StereoSGBM::MODE_SGBM, StereoSGBM::MODE_SGBM_3WAY, StereoSGBM::MODE_HH4);
|
||||||
typedef tuple<Size, int, SGBMModes> SGBMParams;
|
typedef tuple<Size, int, SGBMModes> SGBMParams;
|
||||||
typedef TestBaseWithParam<SGBMParams> TestStereoCorresp;
|
typedef TestBaseWithParam<SGBMParams> TestStereoCorresp;
|
||||||
|
|
||||||
|
#ifndef _DEBUG
|
||||||
PERF_TEST_P( TestStereoCorresp, SGBM, Combine(Values(Size(1280,720),Size(640,480)), Values(256,128), SGBMModes::all()) )
|
PERF_TEST_P( TestStereoCorresp, SGBM, Combine(Values(Size(1280,720),Size(640,480)), Values(256,128), SGBMModes::all()) )
|
||||||
|
#else
|
||||||
|
PERF_TEST_P( TestStereoCorresp, DISABLED_TooLongInDebug_SGBM, Combine(Values(Size(1280,720),Size(640,480)), Values(256,128), SGBMModes::all()) )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
RNG rng(0);
|
RNG rng(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user