Ask Your Question
0

Simple stitching code

asked 2015-10-28 07:49:29 -0500

flaviu2 gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-28 08:13:46 -0500

berak gravatar image

hmm, MFC, could youtake a look, if you're linking against multithreaded dynamic debug c-runtime (/MDd) ?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-10-28 07:49:29 -0500

Seen: 97 times

Last updated: Oct 28 '15