diff --git a/modules/features2d/src/agast.cpp b/modules/features2d/src/agast.cpp index 39ac9994d9..8379831f0a 100644 --- a/modules/features2d/src/agast.cpp +++ b/modules/features2d/src/agast.cpp @@ -48,7 +48,7 @@ The references are: namespace cv { -#if (defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64)) +#if (defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64) || defined(_M_ARM64) || defined(__aarch64__) || defined(__arm__)) static void AGAST_5_8(InputArray _img, std::vector& keypoints, int threshold) { @@ -7444,7 +7444,7 @@ static void OAST_9_16(InputArray _img, std::vector& keypoints, int thr -#else // !(defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64)) +#else // !(defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64) || defined(_M_ARM64) || defined(__aarch64__) || defined(__arm__)) static void AGAST_ALL(InputArray _img, std::vector& keypoints, int threshold, AgastFeatureDetector::DetectorType agasttype) { @@ -7932,7 +7932,7 @@ static void OAST_9_16(InputArray _img, std::vector& keypoints, int thr AGAST_ALL(_img, keypoints, threshold, AgastFeatureDetector::OAST_9_16); } -#endif // !(defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64)) +#endif // !(defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64) || defined(_M_ARM64) || defined(__aarch64__) || defined(__arm__)) void AGAST(InputArray _img, std::vector& keypoints, int threshold, bool nonmax_suppression) { diff --git a/modules/features2d/src/agast_score.cpp b/modules/features2d/src/agast_score.cpp index ff40da4a81..7c670f88c0 100644 --- a/modules/features2d/src/agast_score.cpp +++ b/modules/features2d/src/agast_score.cpp @@ -90,7 +90,7 @@ void makeAgastOffsets(int pixel[16], int rowStride, AgastFeatureDetector::Detect pixel[k] = offsets[k][0] + offsets[k][1] * rowStride; } -#if (defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64)) +#if (defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64) || defined(_M_ARM64) || defined(__aarch64__) || defined(__arm__)) // 16 pixel mask template<> int agast_cornerScore(const uchar* ptr, const int pixel[], int threshold) @@ -9373,7 +9373,7 @@ int agast_cornerScore(const uchar* ptr, const i b_test = (bmin + bmax) / 2; } } -#else // !(defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64)) +#else // !(defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64) || defined(_M_ARM64) || defined(__aarch64__) || defined(__arm__)) int agast_tree_search(const uint32_t table_struct32[], int pixel_[], const unsigned char* const ptr, int threshold) @@ -9858,6 +9858,6 @@ int agast_cornerScore(const uchar* ptr, const i return AGAST_ALL_SCORE(ptr, pixel, threshold, AgastFeatureDetector::OAST_9_16); } -#endif // !(defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64)) +#endif // !(defined __i386__ || defined(_M_IX86) || defined __x86_64__ || defined(_M_X64) || defined(_M_ARM64) || defined(__aarch64__) || defined(__arm__)) } // namespace cv