How to convert matlab code to c/c++ code?

3 visualizaciones (últimos 30 días)
anu
anu el 30 de Mzo. de 2015
Respondida: Denis Gurchenkov el 9 de Abr. de 2015
In my algorithms,there are imresize,imfilter and many more functions that are not working with matlab coder.so Is there another way?

Respuestas (1)

Denis Gurchenkov
Denis Gurchenkov el 9 de Abr. de 2015
I'm not aware of any other tool or product that converts MATLAB code to C/C++, other than MATLAB Coder. Your options are:
  • Wait for future release where imresize, imfilter etc are supported for code generation. More functions are supported for code generation with each release (you can also consider contacting MathWorks tech support and explicitly requesting that the functions you need be supported. Development team would be happy to hear that, as it helps them to set right priorities).
  • Implement suitable versions of those functions yourself (either directly in C/C++, or in codegenable subset of MATLAB language). Presumably you don't need imresize and imfilter in full, just some concrete cases. Is there a freeware C library that you can call to, using coder.ceval?
  • Reconsider the need for C/C++. For instance, many people who want to deploy their code can use MATLAB Compiler instead.
I know this sounds harsh, I'd be happy if someone could offer a more comforting alternative.
-- Denis

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by