资源简介
利用OpenCV中的Stitcher类实现全景图像拼接
是OpenCV中自带的样例,版本是OpenCV2.4.4
运行时请自行配置好头文件和lib文件目录
代码片段和文件信息
#include
#include
#include
#include “opencv2/opencv_modules.hpp“
#include “opencv2/highgui/highgui.hpp“
#include “opencv2/stitching/detail/autocalib.hpp“
#include “opencv2/stitching/detail/blenders.hpp“
#include “opencv2/stitching/detail/camera.hpp“
#include “opencv2/stitching/detail/exposure_compensate.hpp“
#include “opencv2/stitching/detail/matchers.hpp“
#include “opencv2/stitching/detail/motion_estimators.hpp“
#include “opencv2/stitching/detail/seam_finders.hpp“
#include “opencv2/stitching/detail/util.hpp“
#include “opencv2/stitching/detail/warpers.hpp“
#include “opencv2/stitching/warpers.hpp“
using namespace std;
using namespace cv;
using namespace cv::detail;
static void printUsage()
{
cout <<
“Rotation model images stitcher.\n\n“
“stitching_detailed img1 img2 [...imgN] [flags]\n\n“
“Flags:\n“
“ --preview\n“
“ Run stitching in the preview mode. Works faster than usual mode\n“
“ but output image will have lower resolution.\n“
“ --try_gpu (yes|no)\n“
“ Try to use GPU. The default value is ‘no‘. All default values\n“
“ are for CPU mode.\n“
“\nMotion Estimation Flags:\n“
“ --work_megapix \n“
“ Resolution for image registration step. The default is 0.6 Mpx.\n“
“ --features (surf|orb)\n“
“ Type of features used for images matching. The default is surf.\n“
“ --match_conf \n“
“ Confidence for feature matching step. The default is 0.65 for surf and 0.3 for orb.\n“
“ --conf_thresh \n“
“ Threshold for two images are from the same panorama confidence.\n“
“ The default is 1.0.\n“
“ --ba (reproj|ray)\n“
“ Bundle adjustment cost function. The default is ray.\n“
“ --ba_refine_mask (mask)\n“
“ Set refinement mask for bundle adjustment. It looks like ‘x_xxx‘\n“
“ where ‘x‘ means refine respective parameter and ‘_‘ means don‘t\n“
“ refine one and has the following format:\n“
“ . The default mask is ‘xxxxx‘. If bundle\n“
“ adjustment doesn‘t support estimation of selected parameter then\n“
“ the respective flag is ignored.\n“
“ --wave_correct (no|horiz|vert)\n“
“ Perform wave effect correction. The default is ‘horiz‘.\n“
“ --save_graph \n“
“ Save matches graph represented in DOT language to file.\n“
“ Labels description: Nm is number of matches Ni is number of inliers\n“
“ C is confidence.\n“
“\nCompositing Flags:\n“
“ --warp (plane|cylindrical|spherical|fisheye|stereographic|compressedPlaneA2B1|compressedPlaneA1.5B1|compressedPlanePortraitA2B1|compressedPlanePortraitA1.5B1|paniniA2B1|paniniA1.5B1|pa
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 500875 2012-05-21 16:54 ImageStitching\debug\2.jpg
文件 497205 2012-05-21 16:54 ImageStitching\debug\3.jpg
文件 15880 2013-05-28 10:52 ImageStitching\debug\car1.jpg
文件 15688 2013-05-28 10:52 ImageStitching\debug\car2.jpg
文件 4648576 2013-05-28 10:23 ImageStitching\debug\ImageStitching.exe
文件 17986 2013-05-28 10:49 ImageStitching\debug\land1.jpg
文件 18999 2013-05-28 10:49 ImageStitching\debug\land2.jpg
文件 16092 2013-05-28 10:46 ImageStitching\debug\lena1.jpg
文件 16064 2013-05-28 10:46 ImageStitching\debug\lena2.jpg
文件 1204930 2013-05-28 10:22 ImageStitching\debug\main.o
文件 44073 2013-05-28 10:53 ImageStitching\debug\result.jpg
文件 522 2013-05-28 10:23 ImageStitching\ImageStitching.pro
文件 18882 2013-05-28 11:00 ImageStitching\ImageStitching.pro.user
文件 26219 2013-05-28 10:21 ImageStitching\main.cpp
文件 6177 2013-05-28 10:23 ImageStitching\Makefile
文件 5405 2013-05-28 10:23 ImageStitching\Makefile.Debug
文件 5448 2013-05-28 10:23 ImageStitching\Makefile.Release
文件 27657 2013-01-28 07:18 ImageStitching\stitching_detailed.cpp
目录 0 2013-05-28 10:53 ImageStitching\debug
目录 0 2013-05-28 10:22 ImageStitching\release
目录 0 2013-05-28 11:00 ImageStitching
----------- --------- ---------- ----- ----
7086678 21
- 上一篇:1.25mm链接器AD封装
- 下一篇:中国移动软件测试工程师笔试题
相关资源
- opencv实现的sift算法源码,包含了图像
- openCV 上的小波变换
- 基于OPENCV的车牌识别系统设计
- 617张国内车牌60-17bmp图片用于OpenCV正样
- hog特征提取,c版本代码
- 基于Qt5.8+OpenCV3.2的Basler多相机触发开
- 基于Opencv实现的图像纠偏
- ImageWatch2019.vsix
- SIFT特征提取+匹配
- 基于SIFT算法的图像拼接.rar
- opencv4.1.1+contrib完整版.zip
- OpenCV3.3+contrib-master,VS2013编译后的l
- OpenCV2.4.10官方完整版
- 基于OpenCV3.0的手势识别.rar
- 基于opencv的车牌识别源码
- Firmware_F103 V1.3.rar
- VS2017+opencv写的火焰检测带检测视频哦
- opencv图像处理方法总结.pdf
- bumblebee双目标定/伪彩色深度图/鼠标测
- OpenCV中对图片进行灰度处理
- 车牌识别系统原创+详细注释版+少函数
- 张正友相机标定自己编写calibratie函数
- Ubuntu16.04中配置Qt5.9.1和OpenCV3.4.0过程
- opencv彩色视频以灰度格式和极坐标格
- 基于open cv的人脸识别
- opencv内置各种分类器
- 车道检测VS2015+OPENCV3.3
- OpenCV人脸识别给头像带上圣诞帽工程
- OpenCV计算物体重心坐标代码以及工程
- opencv获取摄像头ID和名称
评论
共有 条评论