2
我嘗試使用合成全景無estimateTransform ... 它非常好與estimateTransform使用撰寫全景無estimateTransform
stitcher.estimateTransform(imgs);
stitcher.composePanorama(pano);
但我發現另一種方式來計算imagerotation等,這就是爲什麼我要使用composepanorama這樣的:
vector<Mat> imgs;
imgs.push_back(image1);
imgs.push_back(image2);
imgs.push_back(image3);
imgs.push_back(image4);
imgs.push_back(image5);
imgs.push_back(image6);
stitcher.composePanorama(Inputimages,pano);
但每次我TRIE這個我得到這個錯誤:
Error: Assertion failed (imgs.size() == imgs_.size()) in unknown function, file ......\src\opencv\modules\stitching\src\stitcher.cpp , line 128