I am trying to use the code below to create a panorama. img1 and img2 are coming from 2 cameras and I know that they both contain data (that they're not NULL). The code compiles and runs. However, when I run the code, I get the error in the attached image. I have no clue what's going on. Does anyone have any ideas? I'd appreciate the help!
vector<<mat>Mat> imgs;
imgs.push_back(img1);
imgs.push_back(img2);
Mat pano;
Stitcher stitcher = Stitcher::createDefault(true);
Stitcher::Status status = stitcher.stitch(imgs, pano);
if (status != Stitcher::OK)
{
cout << "Can't stitch images, error code = " << int(status) << endl;
return -1;
}