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
This commit is contained in:
Adrian Clark 2014-09-01 09:37:33 +12:00
parent 1984aacb27
commit fcc481e751

View File

@ -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;