Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 322

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? Here 2.jpg and 3.jpg are the cropped images from the single image.

Viewing all articles
Browse latest Browse all 322

Latest Images

Trending Articles



Latest Images