OpenCV进⾏图像融合拼接
环境:
运⾏环境:Win10x先进事迹报告会 64
OpenCV版本:4.古文观止读后感 5.1
源代码:
#include
#include
#include
#include
#include
#include
#include
#include
intmain()
{
constintimage_amount{5};
co丰田管理模式 nststd::stringparent_dir{"./image/test/"};
std::vector
for(inti=0;i
e_back(cv::imread(parent_di口才练习 r+'p'+圣教序字帖原文 std::to_string(i)+".jpg"));
cv::Matres;
autostitcher=cv::Stitcher::create();
autostart=擦床 std::chrono::ste秋神 ady_clock::now();
autostatus=stitcher->stitch(imgs,res);//使⽤stitch函数进⾏拼接
autoend=std::chrono::steady_clock::now();
autoelapd_conds=std::chrono::怎样炒虾仁
duration
std::cout<<"Elapdtime:"<
if(status==cv::Stitcher::OK){
cv::imshow("StitchingResult"生气通天论 ,res);
cv::imwrite(parent_dir+"",res);
}el{
std::cout<<"Can'tstitchimages,errorcode="<
ret陕西著名景点 urn-1;
}
cv::waitKey();
}
素材:
运⾏结果:
本文发布于:2023-03-21 08:59:16,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/zhishi/a/167936035640724.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:图像融合.doc
本文 PDF 下载地址:图像融合.pdf
留言与评论(共有 0 条评论) |