资源简介
使用:Sift算法。用不同尺度(标准差)的高斯函数对图像进行平滑,然后比较平滑后图像的差别,
差别大的像素就是特征明显的点。
该算法主要包括5个步骤进行匹配:
1、构建尺度空间,检测极值点,获得尺度不变性;
2、特征点过滤并进行精确定位,剔除不稳定的特征点;
3、在特征点处提取特征描述符,为特征点分配方向值;
4、生成特征描述子,利用特征描述符寻找匹配点;
5、计算变换参数

代码片段和文件信息
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING COPYING INSTALLING OR USING.
//
// By downloading copying installing or using the software you agree to this license.
// If you do not agree to this license do not download install
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008 Intel Corporation all rights reserved.
// Copyright (C) 2009 Willow Garage Inc. all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms with or without modification
// are permitted provided that the following conditions are met:
//
// * Redistribution‘s of source code must retain the above copyright notice
// this list of conditions and the following disclaimer.
//
// * Redistribution‘s in binary form must reproduce the above copyright notice
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors “as is“ and
// any express or implied warranties including but not limited to the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct
// indirect incidental special exemplary or consequential damages
// (including but not limited to procurement of substitute goods or services;
// loss of use data or profits; or business interruption) however caused
// and on any theory of liability whether in contract strict liability
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software even if advised of the possibility of such damage.
//
//M*/
#include
#include
#include “opencv2/highgui/highgui.hpp“
#include “opencv2/stitching/stitcher.hpp“
using namespace std;
using namespace cv;
bool try_use_gpu = false;
vector imgs;
string result_name = “result.jpg“;
void printUsage();
int parseCmdArgs(int argc char** argv);
int main(int argc char* argv[])
{
int retval = parseCmdArgs(argc argv);
if (retval) return -1;
Mat pano;
Stitcher stitcher = Stitcher::createDefault(try_use_gpu);
Stitcher::Status status = stitcher.stitch(imgs pano);
if (status != Stitcher::OK)
{
cout << “Can‘t stitch images error code = “ << status << endl;
return -1;
}
imwrite(result_name pano);
return 0;
}
void printUsage()
{
cout <<
“Rotation model images stitcher.\n\n“
“stitching img1 img2 [...i
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-07-05 18:07 imageStitching\.vs\
目录 0 2018-07-05 18:07 imageStitching\.vs\imageStitching\
目录 0 2018-07-05 18:07 imageStitching\.vs\imageStitching\v14\
文件 22528 2018-07-05 19:30 imageStitching\.vs\imageStitching\v14\.suo
目录 0 2018-07-05 18:07 imageStitching\Backup\
文件 908 2012-05-21 16:55 imageStitching\Backup\imageStitching.sln
目录 0 2018-07-05 18:07 imageStitching\Backup\imageStitching\
目录 0 2012-05-21 17:00 imageStitching\Debug\
文件 100352 2012-05-21 16:58 imageStitching\Debug\imageStitching.exe
文件 554984 2012-05-21 16:58 imageStitching\Debug\imageStitching.ilk
文件 1534976 2012-05-21 16:58 imageStitching\Debug\imageStitching.pdb
文件 317368 2012-04-25 04:25 imageStitching\Debug\tbb_debug.dll
文件 10136576 2012-05-22 16:58 imageStitching\imageStitching.ncb
文件 986 2018-07-05 18:07 imageStitching\imageStitching.sln
文件 8704 2012-05-22 16:58 imageStitching\imageStitching.suo
文件 8323072 2018-07-05 19:30 imageStitching\imageStitching.VC.db
目录 0 2018-07-05 19:30 imageStitching\imageStitching\
文件 507274 2012-05-21 16:54 imageStitching\imageStitching\1.jpg
文件 500875 2012-05-21 16:54 imageStitching\imageStitching\2.jpg
文件 497205 2012-05-21 16:54 imageStitching\imageStitching\3.jpg
目录 0 2018-07-05 19:07 imageStitching\imageStitching\Debug\
文件 5306 2012-05-21 16:58 imageStitching\imageStitching\Debug\BuildLog.htm
文件 621 2012-05-21 16:58 imageStitching\imageStitching\Debug\imageStitching.exe.intermediate.manifest
目录 0 2018-07-05 19:07 imageStitching\imageStitching\Debug\imageStitching.tlog\
文件 67 2012-05-21 16:58 imageStitching\imageStitching\Debug\mt.dep
文件 400030 2012-05-21 16:57 imageStitching\imageStitching\Debug\stitching.obj
文件 707584 2012-05-21 16:57 imageStitching\imageStitching\Debug\vc90.idb
文件 1028096 2012-05-21 16:57 imageStitching\imageStitching\Debug\vc90.pdb
文件 3757 2012-05-21 16:58 imageStitching\imageStitching\imageStitching.vcproj
文件 1441 2012-05-22 16:58 imageStitching\imageStitching\imageStitching.vcproj.HP98402794308.Administrator.user
文件 4309 2018-07-05 18:07 imageStitching\imageStitching\imageStitching.vcxproj
............此处省略5个文件信息
- 上一篇:51单片机开发板PCB 原理图
- 下一篇:从局部到整体:5G系统观-完整版.pdf
相关资源
- VisualStudioUninstaller vs卸载工具
- 组态王驱动开发包3.0.0.7(中文)
- 多窗口后台鼠标连点器
- 使用选择性重传协议实现UDP可靠通信
- VC 获得文件属性 获取文件的创建时
- 读者写者问题(读者优先,写者优先
- 用VC 编写的仿QQ聊天室程序源代码
- 外点法程序
- 外罚函数程序
- qt-电子点菜系统
- 推箱子及人工智能寻路C 源代码
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- MUSIC算法c 实现
- C 餐厅叫号系统(QT平)
- 国际象棋c 完整版
-
ob
jectARX给Auto CAD加工具条 - 画图程序MFC/VC/VC CRectTracker 串行化
- MFC网络编程实例
- c 课程设计 职工信息管理系统
- 基于OpenCV的数字识别468815
- VC 游戏编程—附源代码
- 使用opencv去掉二值化图像中黑色面积
- IpHlpApi.h&IpHlpApi.lib
- 清华大学 c 郑莉 ppt课件
- c 程序判断离散数学中命题公式
- 多项式求和(数据结构C 版)
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
评论
共有 条评论