Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Feature Matching Large images

$
0
0
Hello everyone! I have a little problem with the feature matching. I'm using [this method](http://docs.opencv.org/2.4/doc/tutorials/features2d/feature_flann_matcher/feature_flann_matcher.html) with `Ptr detector = SurfFeatureDetector::create(minHessian);` instead of `SurfFeatureDetector detector( minHessian );` But I'm using it with enormous images (72Mb / 11804 * 5850px) and when I start the program, my computer freeze! It just freeze! Nothing works any more. I just waited 30mn and nothing happened. I was wondering if there is a method that can work to do feature matching with those big images (like, if the L2-SIFT is implemented?) Thanks in advance :) Have a nice day everyone! :) Edit : Sorry, that's right I didn't give informations. I'm actually on Windows 7 SP1, using a DELL with 4Gb RAM. I'm working with OpenCV 3.1.0 And the code I have is : Mat img_1 = imread("... /*Large image*/", IMREAD_GRAYSCALE); Mat img_2 = imread("..."/*Little image*/, IMREAD_GRAYSCALE); //-- Step 1: Detect the keypoints using SURF Detector int minHessian = 400; Ptr detector = SurfFeatureDetector::create(minHessian); //SurfFeatureDetector detector(minHessian); std::vector keypoints_1, keypoints_2; detector->detect(img_1, keypoints_1); detector->detect(img_2, keypoints_2); std::cout << " Step 1" << std::endl; and my computer doesn't type "Step 1" in the console, so I suppose the problem come from ` detector->detect(img_1, keypoints_1); ` I know it works when I resize img_1 by a factor of 0.5 . So I'm sure it's a memory problem.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>