<div id="cnblogs_post_body" style="margin:0px 0px 20px; padding:0px; word-break:break-word; color:rgb(51,51,51); font-family:Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:23px">
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px"><span style="margin:0px; padding:0px">下面给出了多个参考地址,挑个能用的吧:</span></p>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px">vs2010+Rob Hess SIFT: <a href="http://blog.csdn.net/lanbing510/article/details/8507341" rel="noopener noreferrer" style="margin:0px; padding:0px; text-decoration:none; color:rgb(0,0,0); border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:rgb(51,51,51)" target="_blank">http://blog.csdn.net/lanbing510/article/details/8507341</a></p>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px"> Rob Hess主页:<a href="http://blogs.oregonstate.edu/hess/" rel="noopener noreferrer" style="margin:0px; padding:0px; text-decoration:none; color:rgb(0,0,0); border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:rgb(51,51,51)" target="_blank">http://blogs.oregonstate.edu/hess/</a></p>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px"> SIFT的实现有好几个版本,Rob Hess的这个也是基于opencv的。</p>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px"> 下载地址:<a href="http://robwhess.github.io/opensift/" rel="noopener noreferrer" style="margin:0px; padding:0px; text-decoration:none; color:rgb(0,0,0); border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:rgb(51,51,51)" target="_blank">http://robwhess.github.io/opensift/</a></p>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px">(有windows平台下的和linux平台下的... ...)</p>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px"><span style="margin:0px; padding:0px; background-color:rgb(255,255,153)">sift-latest-win.zip:<a href="http://download.csdn.net/detail/rxy429/5812261" rel="noopener noreferrer" style="margin:0px; padding:0px; text-decoration:none; color:rgb(0,0,0); border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:rgb(51,51,51)" target="_blank"><span style="margin:0px; padding:0px"> http://download.csdn.net/detail/rxy429/5812261#</span></a></span></p>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px">sift-1.1.2_20101207_win:https://code.google.com/p/hlibrary/source/browse/#svn%2Fbranches%2Fsift-1.1.2_20101207_win</p>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px">shioyng:http://blog.csdn.net/chen825919148/article/details/7685952</p>
<h1 style="margin:0px; padding:0px; color:rgb(0,0,0); font-size:28px">一 OpenCV内部的SIFT API:</h1>
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px">Opencv中调用SIFT进行特征提取和匹配:</p>
<div class="cnblogs_code" style="margin:5px 0px; padding:5px; background-color:rgb(245,245,245); border:1px solid rgb(204,204,204); overflow:auto; color:rgb(0,0,0); font-family:'Courier New'!important; font-size:12px!important">
<div class="cnblogs_code_toolbar" style="margin:5px 0px 0px; padding:0px">
<span class="cnblogs_code_copy" style="margin:0px; padding:0px 5px 0px 0px; line-height:1.5!important"><a style="margin:0px; padding:0px; border:none!important" target="_blank" title="复制代码"><img alt="复制代码" src="https://beijingoptbbs.oss-cn-beijing.aliyuncs.com/cs/5606289-69c5a8ac3fa60e0848d784a6dd461da6.gif" style="margin:0px; padding:0px; border:none!important"></a></span>
</div>
<pre style="margin-top:0px; margin-bottom:0px; padding:0px; white-space:pre-wrap; word-wrap:break-word; font-family:'Courier New'!important">#include <iostream><span style="margin:0px; padding:0px; line-height:1.5!important">
#include </span><opencv2/opencv.hpp><span style="margin:0px; padding:0px; line-height:1.5!important">
#include </span><opencv2/nonfree/nonfree.hpp>
<span style="margin:0px; padding:0px; color:rgb(0,0,255); line-height:1.5!important">using</span> <span style="margin:0px; padding:0px; color:rgb(0,0,255); line-height:1.5!important">namespace</span><span style="margin:0px; padding:0px; line-height:1.5!important"> std;
</span><span style="margin:0px; padding:0px; color:rgb(0,0,255); line-height:1.5!important">using</span> <span style="margin:0px; padding:0px; color:rgb(0,0,255); line-height:1.5!important">namespace</span><span style="margin:0px; padding:0px; line-height:1.5!important"> cv;
</span><span style="margin:0px; padding:0px; color:rgb(0,0,255); line-height:1.5!important">int</span><span style="margin:0px; padding:0px; line-height:1.5!important"> main()
{
initModule_nonfree();</span><span style="margin:0px; padding:0px; color:rgb(0,128,0); line-height:1.5!important">//</span><span style="margin:0px; padding:0px; color:rgb(0,128,0); line-height:1.5!important">if use SIFT or SURF </span>
Ptr<FeatureDetector> detector = FeatureDetector::create(<span style="margin:0px; padding:0px; color:rgb(128,0,0); line-height:1.5!important">"</span><span style="margin:0px; padding:0px; color:rgb(128,0,0); line-height:1.5!important">SIFT</span><span style="margin:0px; padding:0px; color:rgb(128,0,0); line-height:1.5!important">"</span><span style="margin:0px; padding:0px; line-height:1.5!important">);
Ptr</span><DescriptorExtractor> descriptor_extractor = DescriptorExtractor::create(<span style="margin:0px; padding:0px; color:rg |
|