my friend write great function that do image processing in matlab (with image processing toolbox),
there is a way to auto generate this matlab code to c code (source code) that i can wrap it in dll that .net can load???
using System;
using System.Runtime.InteropServices;
class PlatformInvokeTest
{
[DllImport("imp.dll")]
public static extern int puts(string c);
[DllImport("imp2.dll")]
internal static extern int _flushall();
public static void Main()
{
puts("Test");
_flushall();
}
}
thanks
MATLAB Compiler can do that. Use
This will generate the ‘.dll’, the C source code, its header file and a MEX wrapper on C.
Read this carefully to know other options.