From 21b463069817ef48e9eb52059168cc39b7b64ede Mon Sep 17 00:00:00 2001 From: Hamdi Sahloul Date: Thu, 20 Sep 2018 06:45:42 +0900 Subject: [PATCH] Renamed unnamed enum to FastFeatureDetector.DetectorType --- modules/xfeatures2d/include/opencv2/xfeatures2d.hpp | 2 +- modules/xfeatures2d/src/fast.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp b/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp index 0329cb6cb..3d8a0e287 100644 --- a/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp +++ b/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp @@ -960,7 +960,7 @@ FastFeatureDetector::TYPE_5_8 Detects corners using the FAST algorithm by @cite Rosten06 . */ CV_EXPORTS void FASTForPointSet( InputArray image, CV_IN_OUT std::vector& keypoints, - int threshold, bool nonmaxSuppression=true, int type=FastFeatureDetector::TYPE_9_16); + int threshold, bool nonmaxSuppression=true, FastFeatureDetector::DetectorType type=FastFeatureDetector::TYPE_9_16); //! @} diff --git a/modules/xfeatures2d/src/fast.cpp b/modules/xfeatures2d/src/fast.cpp index fd05c9618..fdec0b3b3 100644 --- a/modules/xfeatures2d/src/fast.cpp +++ b/modules/xfeatures2d/src/fast.cpp @@ -456,7 +456,7 @@ namespace { namespace cv { namespace xfeatures2d { - void FASTForPointSet(InputArray _img, std::vector& keypoints, int threshold, bool nonmax_suppression, int type) + void FASTForPointSet(InputArray _img, std::vector& keypoints, int threshold, bool nonmax_suppression, FastFeatureDetector::DetectorType type) { if (keypoints.empty()) { FAST(_img, keypoints, threshold, nonmax_suppression, type);