From 42e604abea2f1f36b321fa58937d2d2d46d2aabf Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 13 Mar 2014 23:17:28 +0400 Subject: [PATCH] fixed bug in FAST --- modules/features2d/src/fast.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: