From fcc481e751749c6840a5408d058b2ed6b645f6ab Mon Sep 17 00:00:00 2001 From: Adrian Clark Date: Mon, 1 Sep 2014 09:37:33 +1200 Subject: [PATCH] Fixed crash in SSE implementation of FREAK descriptor when number of pairs is set to something other than 512. See http://code.opencv.org/issues/3889 for more details --- modules/features2d/src/freak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/freak.cpp b/modules/features2d/src/freak.cpp index 8cb1b4d..8bff9f5 100644 --- a/modules/features2d/src/freak.cpp +++ b/modules/features2d/src/freak.cpp @@ -394,7 +394,7 @@ void FREAK::computeImpl( const Mat& image, std::vector& keypoints, Mat (*ptr) = result128; ++ptr; } - ptr -= 8; + ptr -= (FREAK_NB_PAIRS/128)*2; #else // extracting descriptor preserving the order of SSE version int cnt = 0; -- 2.7.4