Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Stitching Images, error code 1

$
0
0
Hi, I have a simple code of stitching image. int main() { Mat pano; vector 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 getting error : **Can't stitch images, error code = 1** Can anybody help me to get rid of this error?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>