From bcb6f0386e03c7427c13674ac6db230dd267c80a Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Tue, 1 Oct 2013 17:31:26 +0400 Subject: [PATCH] Named FastFeatureDetector::Type to allow its use in makePtr. It has actually worked before (likely because it's inside a class), but C++03 does disallow unnamed types as template arguments, and there's a report that at least in one version of GCC it's enforced: . --- modules/features2d/include/opencv2/features2d.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/include/opencv2/features2d.hpp b/modules/features2d/include/opencv2/features2d.hpp index af687e3085..9cbae22168 100644 --- a/modules/features2d/include/opencv2/features2d.hpp +++ b/modules/features2d/include/opencv2/features2d.hpp @@ -517,7 +517,7 @@ CV_EXPORTS void FAST( InputArray image, CV_OUT std::vector& keypoints, class CV_EXPORTS_W FastFeatureDetector : public FeatureDetector { public: - enum + enum Type { TYPE_5_8 = 0, TYPE_7_12 = 1, TYPE_9_16 = 2 };