Skip to content

Commit 421e1b2

Browse files
committed
Fix for bug opencv#5007: moved definition of Size_MatDepth_t and Size_MatDepth from ts_perf.hpp to perf_channels.cpp. This way they are closer to where they are needed and live in a different namespace (possibly the reason why the fix works).
1 parent 5ee00ec commit 421e1b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/core/perf/opencl/perf_channels.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ OCL_PERF_TEST_P(MixChannelsFixture, MixChannels,
156156

157157
///////////// InsertChannel ////////////////////////
158158

159+
typedef std::tr1::tuple<cv::Size, MatDepth> Size_MatDepth_t;
160+
typedef TestBaseWithParam<Size_MatDepth_t> Size_MatDepth;
161+
159162
typedef Size_MatDepth InsertChannelFixture;
160163

161164
OCL_PERF_TEST_P(InsertChannelFixture, InsertChannel,

modules/ts/include/opencv2/ts/ts_perf.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,6 @@ template<typename T> class TestBaseWithParam: public TestBase, public ::testing:
477477
typedef std::tr1::tuple<cv::Size, MatType> Size_MatType_t;
478478
typedef TestBaseWithParam<Size_MatType_t> Size_MatType;
479479

480-
typedef std::tr1::tuple<cv::Size, MatDepth> Size_MatDepth_t;
481-
typedef TestBaseWithParam<Size_MatDepth_t> Size_MatDepth;
482-
483480
/*****************************************************************************************\
484481
* Print functions for googletest *
485482
\*****************************************************************************************/

0 commit comments

Comments
 (0)