diff --git a/modules/features2d/src/freak.cpp b/modules/features2d/src/freak.cpp index 8cb1b4d9e7..8bff9f5347 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;