From 6d8f4c6b820b6780f4874dd0669892990bbd3a31 Mon Sep 17 00:00:00 2001 From: Leonid Beynenson Date: Mon, 26 Dec 2011 12:34:28 +0000 Subject: [PATCH] Added small debug insertion. --- modules/stitching/src/matchers.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/stitching/src/matchers.cpp b/modules/stitching/src/matchers.cpp index c32d910..aa8c0e9 100644 --- a/modules/stitching/src/matchers.cpp +++ b/modules/stitching/src/matchers.cpp @@ -372,7 +372,19 @@ void OrbFeaturesFinder::find(const Mat &image, ImageFeatures &features) int xr = (c+1) * gray_image.cols / grid_size.width; int yr = (r+1) * gray_image.rows / grid_size.height; - (*orb)(gray_image(Range(yl, yr), Range(xl, xr)), Mat(), points, descriptors); + LOGLN("OrbFeaturesFinder::find: gray_image.empty=" << (gray_image.empty()?"true":"false") << ", " + << " gray_image.size()=(" << gray_image.size().width << "x" << gray_image.size().height << "), " + << " yl=" << yl << ", yr=" << yr << ", " + << " xl=" << xl << ", xr=" << xr << ", gray_image.data=" << ((size_t)gray_image.data) << ", " + << "gray_image.dims=" << gray_image.dims << "\n"); + + Mat gray_image_part=gray_image(Range(yl, yr), Range(xl, xr)); + LOGLN("OrbFeaturesFinder::find: gray_image_part.empty=" << (gray_image_part.empty()?"true":"false") << ", " + << " gray_image_part.size()=(" << gray_image_part.size().width << "x" << gray_image_part.size().height << "), " + << " gray_image_part.dims=" << gray_image_part.dims << ", " + << " gray_image_part.data=" << ((size_t)gray_image_part.data) << "\n"); + + (*orb)(gray_image_part, Mat(), points, descriptors); features.keypoints.reserve(features.keypoints.size() + points.size()); for (std::vector::iterator kp = points.begin(); kp != points.end(); ++kp) -- 2.7.4