简体   繁体   中英

How can I convert MATLAB image processing library build-in function to c++ that is not supported by matlab coder code generation?

如何将内置的函数(如imagesc和bwareafilt)转换为Matlab编码器不支持代码生成的c ++ / c代码?

If it is not supported by the Matlab Coder , manual conversion may be the option. You can use OpenCV for C++ . Here is a cheat sheet that links Matlab Commands and equivalent OpenCV commands .

https://github.com/ingenuitas/SimpleCV/blob/master/doc/CheatSheet/cheatsheet.pdf?raw=true

I have personally converted Matlab Code to OpenCV code manually.

Though simple functions are similar in both , Matlab offers complex ones like imfindcircles , imagesc etc which may not be available as a single line command in OpenCv as it would be in Matlab.

For this , read the .m file of the specific function in matlab , understand the logic and try to convert it or just google that algorithm . Do this in steps , write down the pseudocode / algo and then try to convert it .

It works !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM