Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

click to hide/show revision 2
retagged

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

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: 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);

CV_32F);

The error: 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

convertTo

Thanks