基于SIFT特征的全景图像拼接

论坛 期权论坛     
选择匿名的用户   2021-5-31 09:32   566   0
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> 主要分为以下几个步骤:</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> <strong>(1) 读入两张图片并分别提取SIFT特征</strong></p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> <strong>(2) 利用k-d tree和BBF算法进行特征匹配查找</strong></p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> <strong>(3) 利用RANSAC算法筛选匹配点并计算变换矩阵</strong></p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> <strong>(3) 图像融合</strong></p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> <br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> SIFT算法以及RANSAC算法都是利用的RobHess的SIFT源码,前三个步骤RobHess的源码中都有自带的示例。</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> <br> </p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> <strong>(1) SIFT特征提取</strong></p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> 直接调用RobHess源码中的sift_features()函数进行默认参数的SIFT特征提取,主要代码如下:</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> </p>
<div class="dp-highlighter bg_cpp" style="font-family:Consolas,&#39;Courier New&#39;,Courier,mono,serif; background-color:rgb(231,229,220); width:1117.703125px; overflow:auto; padding-top:1px; color:rgb(51,51,51); line-height:26px; margin:18px 0px!important">
<div class="bar" style="padding-left:45px">
  <div class="tools" style="padding:3px 8px 10px 10px; font-size:9px; line-height:normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; background-color:rgb(248,248,248); border-left-width:3px; border-left-style:solid; border-left-color:rgb(108,226,108)">
   <strong>[cpp]</strong>
   <a class="ViewSource" href="http://blog.csdn.net/masikkk/article/details/9246493#" rel="noopener noreferrer" style="color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:1px; margin:0px 10px 0px 0px; font-size:9px; display:inline-block; width:16px; height:16px; text-indent:-2000px" target="_blank" title="view plain">view plain</a>
   <a class="CopyToClipboard" href="http://blog.csdn.net/masikkk/article/details/9246493#" rel="noopener noreferrer" style="color:rgb(160,160,160); text-decoration:none; background-color:inherit; border:none; padding:1px; margin:0px 10px 0px 0px; font-size:9px; display:inline-block; width:16px; height:16px; text-indent:-2000px" target="_blank" title="copy">copy</a>
   <div style="position:absolute; left:377px; top:684px; width:18px; height:18px; z-index:99">
   </div>
   <div style="position:absolute; left:668px; top:802px; width:18px; height:18px; z-index:99">
   </div>
  </div>
</div>
<ol class="dp-cpp" start="1" style="padding:0px; border:none; list-style-position:initial; background-color:rgb(255,255,255); color:rgb(92,92,92); margin:0px 0px 1px 45px!important"><li class="alt" style="border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; color:inherit; line-height:18px; margin:0px!important; padding:0px 3px 0px 10px!important"> <span style="margin:0px; padding:0px; border:none; color:black; background-color:inherit"><span style="margin:0px; padding:0px; border:none; background-color:inherit">img1_Feat &#61; cvCloneImage(img1);</span><span class="comment" style="margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit">//复制图1,深拷贝,用来画特征点</span><span style="margin:0px; padding:0px; border:none; background-color:inherit">  </span></span></li><li style="border-style:none none none solid; border-left-width:3px; border-left-color:rgb(108,226,108); list-style:decimal-leading-zero outside; background-color:rgb(248,248,248); line-height:18px; margin:0px!important; padding:0px 3px 0px 10px!important"> <span style="margin:0px; padding:0px; border:none; color:black; background-color:inherit">img2_Feat &#61; cvCloneImage(img2);<span class="comment" style="margin:0px; padding:0px; border:none; color:rgb(0,130,0); background-color:inherit">//复制图2,深拷贝,用来画特征点</span><span style="margin:0px; padding:0px; border:none; background-color:inherit">  </span></span></li><li class="alt" styl
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

下载期权论坛手机APP