资源简介
使用: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
相关资源
- QT5+VS2015制作的画图程序源代码
- sift算法sift-latest_win.zip
- 车牌字符识别的demo
- 圆点摄像头激光测距源代码---本人亲
- opencv图像分类样本
- 32位 opencv 3.4.1 lib和dll文件
- 基于OpenCV的红绿灯识别
- opencv手写英文字符识别
- OpenCV测试工程
- 基于Opencv3.0生成的dll
- arm版opencv-2.4.9
- 算法竞赛入门经典第2版.刘汝佳(带书
- opencv3 图片外接矩形框
- OPENCV 合成两张焦点不同,图像相同的
- OPENCV 找出图片焦点
- 《视觉系统设计》
- opencv1.0.0版本
- arm架构下的boost库文件
- 相机标定完整工程
- 《计算机视觉 ——计算理论与算法基
- VIBE算法原理及openCV源程序
- 串口通信编程实践 串口编程最好的书
- 线性表的基本操作vs2017
- opencv+zbar实现摄像头二维码识别
- Ceph分布式存储实战高清最新版
- 信息隐藏隐写与分析
- opencv学习---运动目标前景检测
- 新手学习opencv--基于Hog的视频行人检测
- 通过Kinect v2.0+ VS2012+openCV2.4.9将彩色帧
- Mastering OpenCV中文版
评论
共有 条评论