File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ #ifndef __OPENCV_PERF_FEATURE2D_HPP__
2
+ #define __OPENCV_PERF_FEATURE2D_HPP__
3
+
1
4
#include " perf_precomp.hpp"
2
5
3
6
/* cofiguration for tests of detectors/descriptors. shared between ocl and cpu tests. */
@@ -22,8 +25,10 @@ using std::tr1::get;
22
25
BRISK_DEFAULT, \
23
26
KAZE_DEFAULT
24
27
28
+ #define CV_ENUM_EXPAND (name, ...) CV_ENUM(name, __VA_ARGS__)
29
+
25
30
enum Feature2DVals { DETECTORS_ONLY, DETECTORS_EXTRACTORS };
26
- CV_ENUM (Feature2DType, DETECTORS_ONLY, DETECTORS_EXTRACTORS)
31
+ CV_ENUM_EXPAND (Feature2DType, DETECTORS_ONLY, DETECTORS_EXTRACTORS)
27
32
28
33
typedef std::tr1::tuple<Feature2DType, string> Feature2DType_String_t;
29
34
typedef perf::TestBaseWithParam<Feature2DType_String_t> feature2d;
@@ -77,3 +82,5 @@ static inline Ptr<Feature2D> getFeature2D(Feature2DType type)
77
82
return Ptr<Feature2D>();
78
83
}
79
84
}
85
+
86
+ #endif // __OPENCV_PERF_FEATURE2D_HPP__
You can’t perform that action at this time.
0 commit comments