AKAZE errors deallocate

asked 2015-10-23 12:15:39 -0500

I try to use AKAZE (below there is my code snippet) but I am getting an error. The error is related to some freeing memory with akaze (kaze, orb I got the same error).

        Mat img_bis = imread("./body/img_1_body_1.jpg");
        Mat model = imread("img_model_1.jpg");
        std::vector<KeyPoint> keypoints_model, keypoints_img;
        Mat descriptor_model, descriptor_img;
        Ptr<AKAZE> akaze = AKAZE::create();
        akaze->detectAndCompute(img_bis, noArray(), keypoints_img, descriptor_img);
        akaze->detectAndCompute(model, noArray(), keypoints_model, descriptor_model);

I used the microsoft visual studio debug session and it says that an invalid parameter has been used for a function and this error cannot be caught. My program works very well until the main returns I have this related memory error. I think my issue is close to this one http://answers.opencv.org/question/61... but I did not see any answer that could help me.

Thank you.

edit retag flag offensive close merge delete


can we get the exact error msg ?

berak gravatar imageberak ( 2015-10-23 23:34:28 -0500 )edit

Hi, here is the exact error message : "Unhandled exception at 0x659DC3A2 (ucrtbase.dll) in TEST_OPENCV3.exe: An invalid parameter was passed to a function that considers invalid parameters fatal."

Antoine_9213 gravatar imageAntoine_9213 ( 2015-10-24 02:56:47 -0500 )edit