Hello,
I've written a function in matlab taking in input an image, extracting some features using a library and predicting a value using LIBSVM library.
This function works well in Matlab. But to call this function in a C code, I've compiled this function using Matlab compiler into a C shared library.
When I call the function inside my C code, everything goes well (the image is well loaded into the function, some files are loaded) except the function svmpredict from LIBSVM. I have the error: "Undefined function 'svmpredict' for input arguments of type 'struct'."
The strange thing is that the folder where the MEX file for svmpredict is defined is in the path. That is why I wonder: is it even possible to call a function defined in a MEX file inside a function compiled into a C shared library?
Thanks in advance.
Best Answer