两种图像拼接(方法 平面、柱面、立体画面)

该博客介绍了如何使用OpenCV进行图像拼接,包括平面、柱面和立体画面的拼接方法。通过读取命令行参数获取原始图像,利用Stitcher类和不同的Warper进行图像融合。程序展示了如何设置匹配算法、估计相机旋转并生成全景图像。
摘要由CSDN通过智能技术生成

// ConsoleApplication46.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
//#include <fstream>
//#include "opencv2/highgui/highgui.hpp"
//#include <opencv2\stitching.hpp>
//#include <iostream>
//
//using namespace cv;
//using namespace std;
//
//vector<Mat> imgs; //保存拼接的原始图像向量
//
//                  //导入所有原始拼接图像函数
//void parseCmdArgs(int argc, char** argv);
//
//int main(int argc, char* argv[])
//{
//    //导入拼接图像
//    parseCmdArgs(argc, argv);
//    Mat pano;
//    Stitcher stitcher = Stitcher::createDefault(false);
//    Stitcher::Status status = stitcher.stitch(imgs, pano);//拼接
//    if (status != Stitcher::OK) //判断拼接是否成功
//    {
//        cout << "Can't stitch images, error code = " << int(status) << endl;
//        return -1;

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值