
OpenCV進?圖像融合拼接
環(huán)境:
運?環(huán)境: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函數(shù)進?拼接
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();
}
素材:
運?結果:
本文發(fā)布于:2023-03-21 08:59:16,感謝您對本站的認可!
本文鏈接:http://m.newhan.cn/zhishi/a/167936035640724.html
版權聲明:本站內(nèi)容均來自互聯(lián)網(wǎng),僅供演示用,請勿用于商業(yè)和其他非法用途。如果侵犯了您的權益請與我們聯(lián)系,我們將在24小時內(nèi)刪除。
本文word下載地址:圖像融合.doc
本文 PDF 下載地址:圖像融合.pdf
| 留言與評論(共有 0 條評論) |