Hi, I have a simple code of stitching image.
int main() { Mat pano; vector <mat> imgs;
imgs.push_back ( imread ("2.jpg",CV_LOAD_IMAGE_COLOR));
imgs.push_back ( imread ("3.jpg",CV_LOAD_IMAGE_COLOR));
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;
}
imshow("result_name", pano);
waitKey(0);
}
I have 2.jpg and 3.jpg is the present working directory. I am running this code, I am Can't stitch images, error code = 1 error. Can anybody help me to get rid of this error?