From d84931e456bf11decd9d12954f7f3032c2ac1931 Mon Sep 17 00:00:00 2001 From: Ethan Rublee Date: Mon, 15 Nov 2010 18:14:14 +0000 Subject: [PATCH] small brief edit, was trying to allow user to pass integral image but this introduced some bugs, so no longer doing this... for now. --- modules/features2d/src/brief.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/features2d/src/brief.cpp b/modules/features2d/src/brief.cpp index 8900780d78..e43efb3eaa 100644 --- a/modules/features2d/src/brief.cpp +++ b/modules/features2d/src/brief.cpp @@ -70,10 +70,13 @@ void BriefDescriptorExtractor::compute(const Mat& image, std::vector& { // Construct integral image for fast smoothing (box filter) Mat sum; - if(image.type() == CV_32S) - sum = image; - else - integral(image, sum, CV_32S); + + ///TODO allow the user to pass in a precomputed integral image + //if(image.type() == CV_32S) + // sum = image; + //else + + integral(image, sum, CV_32S); //Remove keypoints very close to the border removeBorderKeypoints(keypoints, image.size(), PATCH_SIZE/2 + KERNEL_SIZE/2);