我为大图像提取SIFT功能时遇到错误。它可以用于较小的图像。
有谁知道如何解决它?图像的大小是否重要?
图像的大小是2816 * 2122.我使用的代码是:
SiftFeatureDetector detector;
std::vector<KeyPoint> keypoints_object;
detector.detect(img, keypoints_object); // Here I met errors.
错误发布在这里: http://answers.opencv.org/upfiles/14223529532113216.jpg
答案 0 :(得分:0)
我认为分辨率的提高也会增加SIFT检测到的特征数量。
为什么不调整图像大小以使它们变得更小然后执行特征匹配?所以你有一个快速的单应性解决方案,然后可以应用或缩小到原始大小。
例如:http://answers.opencv.org/question/26173/the-relationship-between-homography-matrix-and-scaling-images/