Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Stitching Images, error code 1

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?

Stitching Images, error code 1

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 getting error : Can't stitch images, error code = 1 error. Can anybody help me to get rid of this error?

Stitching Images, error code 1

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 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.