diff --git a/modules/features2d/src/fast.cpp b/modules/features2d/src/fast.cpp index beca7d6ec..92059dc2d 100644 --- a/modules/features2d/src/fast.cpp +++ b/modules/features2d/src/fast.cpp @@ -332,7 +332,7 @@ void FAST(InputArray _img, std::vector& keypoints, int threshold, bool { if( ocl::useOpenCL() && _img.isUMat() && type == FastFeatureDetector::TYPE_9_16 && ocl_FAST(_img, keypoints, threshold, nonmax_suppression, 10000)) - ; + return; switch(type) { case FastFeatureDetector::TYPE_5_8: