2

I have created a 360° panorama using OpenCV Stitcher routine. The panorama itself is ok but when I project it on a sphere (using 360° projection software) the start and end points of panorama along x-axis don't align. The code for creating panorama using 5 input images is;

using namespace cv;  
using namespace std;

void main()  
{
    Mat rImg;
    vector< Mat > vImg;

    vImg.push_back( imread("Img1.jpg") );   
    vImg.push_back( imread("Img2.jpg") );
    vImg.push_back( imread("Img3.jpg") );
    vImg.push_back( imread("Img4.jpg") );
    vImg.push_back( imread("Img5.jpg") );

    Stitcher stitcher = Stitcher::createDefault(0);
    stitcher.stitch(vImg, rImg);

    imshow("Stitching Result", rImg);
    waitKey(0);
}  

I am unable to find any API (in stitching class) for warping/aligning start and end of panorama. Here is a similar question. An algorithm or an openCV API for this problem would be really helpful. Thanks.

4

1 回答 1

1

由于我使用的是广角图像,OpenCV 无法将广角非线性图像拼接成 360 度全景图。

如果是直线图像,OpenCV 的拼接程序可以正常工作。

于 2017-07-03T06:44:24.523 回答