本文介绍了使用openCV在图像中实现SIFT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图用openCV实现SIFT,我已经参考了这些链接和
U can find useful information about SIFT parameters in the OpenCV implementation here: http://docs.opencv.org/modules/nonfree/doc/feature_detection.html
计算关键点:
vector<KeyPoint> keypoints;
detector->detect(yourImage, keypoints);
计算关键点时,其方向会自动计算,并与每个关键点的参数角度相关联关键。请在此处找到更多信息:
When you compute the keypoints its orientation is automatically calculated and is associated with the parameter 'angle' of each keypoint. Please find more info here: http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_feature_detectors.html
计算关键点的描述符:
Mat descriptors;
extractor->compute(yourImage, keypoints, descriptors);
是Mat描述符的每一行描述符。
being each row of the Mat descriptors one descriptor.
如果您有任何疑问,请与我们联系!
希望这有帮助。
Please let me know if you have questions!Hope this helps.
这篇关于使用openCV在图像中实现SIFT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!