Ask Your Question

dagey's profile - activity

2017-10-26 10:29:46 -0600 received badge  Famous Question (source)
2016-12-01 18:10:07 -0600 received badge  Notable Question (source)
2016-09-19 06:08:37 -0600 received badge  Student (source)
2016-03-12 10:30:48 -0600 received badge  Popular Question (source)
2013-08-29 01:34:37 -0600 commented question error: (-215) func != 0 in function convertTo

It worked, thank you very much !!

2013-08-29 01:33:52 -0600 commented answer error: (-215) func != 0 in function convertTo

aaaa how I didn't think of it ! It worked, thank you very much !

2013-08-28 15:37:07 -0600 received badge  Supporter (source)
2013-08-28 15:36:57 -0600 received badge  Scholar (source)
2013-08-28 15:36:32 -0600 commented question error: (-215) func != 0 in function convertTo

It returns an std::vector<KeyPoint>. I am trying to get a CV_32F mat that contains this list of points. Thanks

2013-08-28 15:33:10 -0600 commented answer error: (-215) func != 0 in function convertTo

Thank you very much for this detailed response!

I am trying to build a kd-tree with cv::flann::Index. So, I was trying to build it with a set of keypoints that I have by inserting them to a Mat but in order to build it I need a CV_32F mat and I can't get it right. How do you think I can solve this problem ? Thanks

2013-08-28 10:45:49 -0600 asked a question error: (-215) func != 0 in function convertTo

Hi,

In the following code I get an opencv assertion and I don't understand why. Any help will be very much appreciated.

The code:

Mat m(pm->get_current_tracked_keypoints()); // after this line: m.type=7 and m.depth=7
Mat m1;
m.convertTo(m1, CV_32F);

The error:

OpenCV Error: Assertion failed (func != 0) in convertTo, file /build/buildd/opencv-2.3.1/modules/core/src/convert.cpp, line 937
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.3.1/modules/core/src/convert.cpp:937: error: (-215) func != 0 in function convertTo

Thanks