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);