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