Commit d84931e4 authored by Ethan Rublee's avatar Ethan Rublee

small brief edit, was trying to allow user to pass integral image but this…

small brief edit, was trying to allow user to pass integral image but this introduced some bugs, so no longer doing this...
for now.
parent 29b94cee
......@@ -70,10 +70,13 @@ void BriefDescriptorExtractor::compute(const Mat& image, std::vector<KeyPoint>&
{
// 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);
......
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