From: PolyMar on
Hi,

I would like to know is it possible to call some matlab image processing functions from C++? Is the only method is to use MATLAB engine to call matlab function?

for example, i have written an M-file likes this:

function new_image = img_modify(pass_img)
new_image = imrotate(pass_img,-90,'bilinear','loose');

What i want to do is to pass an image from c++ to this function, and then it return back a rotated image to C++ (or I can do some programming in C++ to read the rotated image). Then by using mcc, some files like .dll, .lib, .c, are generated, however
I dont know how to call this function in C++. Can anybody helps me?

Thanks,
PolyMar