Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ORB::detectAndCompute Debug Assertion Failed (5 code lines)

Hi All,

I am trying to implement a simple keypoint detector. When calling detectAndCompute it gives me Debug assertion fail error. I am on windows 10 + Opencv 3.0. Same code works in Android + Opencv 3.0

Pls help. Following is my code.

cv::Ptr<cv::Feature2D> keypointDetector  = cv::ORB::create(750);

cv::Mat cvImage = cv::imread("a.jpg", CV_LOAD_IMAGE_GRAYSCALE);

std::vector<cv::KeyPoint> keypoints;
cv::Mat descriptors;

keypointDetector->detectAndCompute(cvImage, cv::noArray(), keypoints, descriptors); // fail here

ORB::detectAndCompute Debug Assertion Failed (5 code lines)

Hi All,

I am trying to implement a simple keypoint detector. When calling detectAndCompute it gives me Debug assertion fail error. I am on windows 10 + Opencv 3.0. Same code works in Android + Opencv 3.0

Pls help. Following is my code.

cv::Ptr<cv::Feature2D> keypointDetector  = cv::ORB::create(750);

cv::Mat cvImage = cv::imread("a.jpg", CV_LOAD_IMAGE_GRAYSCALE);

std::vector<cv::KeyPoint> keypoints;
cv::Mat descriptors;

keypointDetector->detectAndCompute(cvImage, cv::noArray(), keypoints, descriptors); // fail here

EDIT: Below is the error message

image description

ORB::detectAndCompute Debug Assertion Failed (5 code lines)

Hi All,

I am trying to implement a simple keypoint detector. When calling detectAndCompute it gives me Debug assertion fail error. I am on windows 10 + Opencv 3.0. Same code works in Android + Opencv 3.0

Pls help. Following is my code.

cv::Ptr<cv::Feature2D> keypointDetector  = cv::ORB::create(750);

cv::Mat cvImage = cv::imread("a.jpg", CV_LOAD_IMAGE_GRAYSCALE);

std::vector<cv::KeyPoint> keypoints;
cv::Mat descriptors;

keypointDetector->detectAndCompute(cvImage, cv::noArray(), keypoints, descriptors); // fail here

EDIT: Below is the error message

image description