Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

AKAZE Giving Error

AKAZE is giving errors. Please help.

This is the code that I used ->

#include <opencv2\opencv.hpp>
#include <opencv2\features2d.hpp>
#include <iostream>
#include <opencv2\opencv_modules.hpp>


const float inlier_threshold = 2.5f; // Distance threshold to identify inliers
const float nn_match_ratio = 0.8f;   // Nearest neighbor matching ratio

int main(void)
{
    cv::Mat img1 = cv::imread("g:/Me.png", cv::IMREAD_GRAYSCALE);
    cv::Mat img2 = cv::imread("g:/Me1.png", cv::IMREAD_GRAYSCALE);

    cv::imshow("img1",img1);
    cv::imshow("img2",img2);



    std::vector<cv::KeyPoint> kpts1,kpts2;
        cv::Mat desc1, desc2;

    cv::Ptr<cv::AKAZE> akaze = cv::AKAZE::create();

    akaze->detectAndCompute(img1, cv::noArray(), kpts1, desc1);
        akaze->detectAndCompute(img2, cv::noArray(), kpts2, desc2);

       cv::waitKey(0);

    akaze.release();

    return 0;
}

image description

I am using OPENCV 3.0 Beta x64.

AKAZE Giving Error

AKAZE is giving errors. Please help.

This is the code that I used ->

#include <opencv2\opencv.hpp>
#include <opencv2\features2d.hpp>
#include <iostream>
#include <opencv2\opencv_modules.hpp>


const float inlier_threshold = 2.5f; // Distance threshold to identify inliers
const float nn_match_ratio = 0.8f;   // Nearest neighbor matching ratio

int main(void)
{
    cv::Mat img1 = cv::imread("g:/Me.png", cv::IMREAD_GRAYSCALE);
    cv::Mat img2 = cv::imread("g:/Me1.png", cv::IMREAD_GRAYSCALE);

    cv::imshow("img1",img1);
    cv::imshow("img2",img2);



    std::vector<cv::KeyPoint> kpts1,kpts2;
        cv::Mat desc1, desc2;

    cv::Ptr<cv::AKAZE> akaze = cv::AKAZE::create();

    akaze->detectAndCompute(img1, cv::noArray(), kpts1, desc1);
        akaze->detectAndCompute(img2, cv::noArray(), kpts2, desc2);

       cv::waitKey(0);

    akaze.release();

    return 0;
}

image description

I am using OPENCV 3.0 Beta x64.

The error is related to some freeing memory.

AKAZE Giving Error

AKAZE is giving errors. Please help.

This is the code that I used ->

#include <opencv2\opencv.hpp>
#include <opencv2\features2d.hpp>
#include <iostream>
#include <opencv2\opencv_modules.hpp>


const float inlier_threshold = 2.5f; // Distance threshold to identify inliers
const float nn_match_ratio = 0.8f;   // Nearest neighbor matching ratio

int main(void)
{
    cv::Mat img1 = cv::imread("g:/Me.png", cv::IMREAD_GRAYSCALE);
    cv::Mat img2 = cv::imread("g:/Me1.png", cv::IMREAD_GRAYSCALE);

    cv::imshow("img1",img1);
    cv::imshow("img2",img2);



    std::vector<cv::KeyPoint> kpts1,kpts2;
        cv::Mat desc1, desc2;

    cv::Ptr<cv::AKAZE> akaze = cv::AKAZE::create();

    akaze->detectAndCompute(img1, cv::noArray(), kpts1, desc1);
        akaze->detectAndCompute(img2, cv::noArray(), kpts2, desc2);

       cv::waitKey(0);

    akaze.release();

    return 0;
}

image description

I am using OPENCV 3.0 Beta x64.

The error is related to some freeing memory.

Windows has triggered a breakpoint in Test64Opencv.exe.

This may be due to a corruption of the heap, which indicates a bug in Test64Opencv.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while Test64Opencv.exe has focus.

The output window may have more diagnostic information.