How to pass and access a binary image(BW byte array) as parameters to the c++ shared library containing Matlab functions?

3 views (last 30 days)
I have created a c++ shared library with matlab functions inside, for example:
Matlab function:
function out=mmImresize(Data,ratio) out=imresize(data,ratio); end
c++:
i. e. function:
mmImresize(int nargout, mwArray& output, const mwArray& data, const mwArray& ratio);
How can i pass my BW image to that function, don't know how to convert 2d byte array to mwArray& and vice versa.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!