diff --git a/modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp b/modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp index 91e85cff1..ef010b5e1 100644 --- a/modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp +++ b/modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp @@ -426,14 +426,10 @@ public: class CV_EXPORTS_W FastFeatureDetector : public Feature2DAsync { public: - enum - { - LOCATION_ROW = 0, - RESPONSE_ROW, - ROWS_COUNT, - - FEATURE_SIZE = 7 - }; + static const int LOCATION_ROW = 0; + static const int RESPONSE_ROW = 1; + static const int ROWS_COUNT = 2; + static const int FEATURE_SIZE = 7; CV_WRAP static Ptr create(int threshold=10, bool nonmaxSuppression=true,