Ask Your Question

deshan's profile - activity

2017-01-06 12:32:35 -0500 commented question ORB::detectAndCompute Debug Assertion Failed (5 code lines)

That was the reason, i built opencv 3.0 with vs 2015 and everything ok now. Thanks berak

2017-01-06 10:25:17 -0500 commented question ORB::detectAndCompute Debug Assertion Failed (5 code lines)

Thanks Berek, seems i should do this. NEW: When I run the exe outside visual studio no problem, do not know why

2017-01-06 10:17:46 -0500 received badge  Editor (source)
2017-01-06 10:16:09 -0500 commented question ORB::detectAndCompute Debug Assertion Failed (5 code lines)

It's _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) screen shot added to original message

2017-01-06 07:38:32 -0500 commented question ORB::detectAndCompute Debug Assertion Failed (5 code lines)

Thanks berak, I have checked. Image is ok.

Another thing is I am using Visual studio 2015 but using OpenCV3.0 precomplied libs of VC12. (OpenCV3.0\opencv\build\x86\vc12\lib) can it be the issue? Because AKAZE and ORB planar tracking opencv example gives me the same error http://docs.opencv.org/3.1.0/dc/d16/t...

2017-01-06 06:10:32 -0500 asked a question 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
2016-01-21 10:31:17 -0500 received badge  Student (source)
2015-03-31 00:49:15 -0500 asked a question file loaded from std::ifstream to opencv image

Hi all,

I have a image file as a byte buffer loaded using a Input stream as below.

std::ifstream is("image.jpg", std::ifstream::binary);
char * buffer; // image.jpg store in this buffer

Now has some difficulties for me to convert this one into a opencv image. Unfortunately I cannot use cvLoadImage function. I tried below but failed.

 cv::Mat mat= cv::Mat(imageHeight, imageWidth, CV_8UC3, buffer);

Getting an error when I want to display it.

cv::imshow("Img", mat);

Please help. Thanks