brief_oboe.patch

Corrects off-by-one error in the Brief descriptor - Michal Kottman, 2011-02-17 12:13 am

Download (694 Bytes)

 
b/opencv/modules/features2d/src/brief.cpp
211 211
    integral( grayImage, sum, CV_32S);
212 212

  
213 213
    //Remove keypoints very close to the border
214
    removeBorderKeypoints(keypoints, image.size(), PATCH_SIZE/2 + KERNEL_SIZE/2);
214
    removeBorderKeypoints(keypoints, image.size(), PATCH_SIZE/2 + KERNEL_SIZE/2 + 1);
215 215

  
216 216
    descriptors = Mat::zeros((int)keypoints.size(), bytes_, CV_8U);
217 217
    test_fn_(sum, keypoints, descriptors);