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)
Show older comments
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.
0 Comments
Answers (0)
See Also
Categories
Find more on Deploy to C++ Applications Using mwArray API (C++03) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!