Commit fcc481e7 authored by Adrian Clark's avatar Adrian Clark

Fixed crash in SSE implementation of FREAK descriptor when number of pairs is…

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
parent 1984aacb
......@@ -394,7 +394,7 @@ void FREAK::computeImpl( const Mat& image, std::vector<KeyPoint>& 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment