Open antran89 opened 9 years ago
I tried your code with Matlab R2014b + opencv-3.0 on Debian Jessie with gcc 4.9 (everything 64 bit) on an Intel Core i5 system and it also crashed Matlab when running it.
I noticed the following output on the console before the crash:
cl_get_gt_device(): error, unknown device
So I guessed the problem might have something to do with OpenCL, therefore I uninstalled the beignet
packages from my system which provide OpenCL support for Intel CPUs (I don't need them):
% apt-get remove beignet beignet-dev
This solved (or worked around) the problem and Matlab no longer crashes when running your code.
Hi OpenCV developers, I am using cv::bridge::Bridge to convert a cv::Mat object to an matlab::mxArray in a simple mex file. The program can be compiled fine, but it will cause Matlab crashed when running. I cannot debug this error by my own. It might be my usage of the function is not correctly. I hope someone who has experiences in this matlab interface will point out some critical facts. Thank you.
I attached cpp, log, and compile files in this repo https://github.com/howtobeahacker/opencv_matlab_interface. The program is tested under Ubuntu and Matlab R2012a.