SIFT学习笔记之一 下载和调用

论坛 期权论坛     
选择匿名的用户   2021-5-31 09:32   648   0
<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&#43;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:&#39;Courier New&#39;!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:&#39;Courier New&#39;!important">#include &lt;iostream&gt;<span style="margin:0px; padding:0px; line-height:1.5!important">
#include </span>&lt;opencv2/opencv.hpp&gt;<span style="margin:0px; padding:0px; line-height:1.5!important">
#include </span>&lt;opencv2/nonfree/nonfree.hpp&gt;

<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&lt;FeatureDetector&gt; detector &#61; FeatureDetector::create(<span style="margin:0px; padding:0px; color:rgb(128,0,0); line-height:1.5!important">&#34;</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">&#34;</span><span style="margin:0px; padding:0px; line-height:1.5!important">);
    Ptr</span>&lt;DescriptorExtractor&gt; descriptor_extractor &#61; DescriptorExtractor::create(<span style="margin:0px; padding:0px; color:rg
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP