From 51ceabb2eb1bba0ab872a81702a60c6b44895d6a Mon Sep 17 00:00:00 2001 From: ChipKerchner Date: Tue, 20 Aug 2019 13:25:35 -0500 Subject: [PATCH] Change fast corner flags in HAL version from char array to single int --- modules/features2d/src/fast.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/features2d/src/fast.cpp b/modules/features2d/src/fast.cpp index fe010c0e39..cb9ff257e3 100644 --- a/modules/features2d/src/fast.cpp +++ b/modules/features2d/src/fast.cpp @@ -159,15 +159,12 @@ void FAST_t(InputArray _img, std::vector& keypoints, int threshold, bo } max0 = K16 < v_max(max0, max1); - int m = -v_reduce_sum(v_reinterpret_as_s8(max0)); - uchar mflag[16]; - v_store(mflag, max0); + unsigned int m = v_signmask(v_reinterpret_as_s8(max0)); - for( k = 0; m > 0 && k < 16; k++ ) + for( k = 0; m > 0 && k < 16; k++, m >>= 1 ) { - if(mflag[k]) + if( m & 1 ) { - --m; cornerpos[ncorners++] = j+k; if(nonmax_suppression) {