Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Simple stitching code

It is first time when I am using OpenCV, and that is for made a simple image stitching ... and I was tried the following simple code:

        Mat image1 = imread("D:/Tempx/Image1.bmp");
    Mat image2 = imread("D:/Tempx/Image2.bmp");
    std::vector<cv::Mat> vImg;

    vImg.push_back(image1);
    vImg.push_back(image2);

    Mat resImage;
    Stitcher stitch = Stitcher::createDefault(TRUE);
    Stitcher::Status stat = stitch.stitch(vImg, resImage);

but on the last line of code, the application crash:

image description

I am using VS2008, in Debug mode, linked by opencv_world300d.dll, msvcp120d.dll, and msvcr120d.dll ... the images are well known:

image description and image description

Could you help me ? Thank you.