Hi, Im trying to generate the C code for my matlab code using Matlab Coder. I got a lot of errors and one of them is Function 'imshow' not supported for code generation.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nurul Farhana Mohd Fadzli
am 6 Dez. 2022
Kommentiert: Nurul Farhana Mohd Fadzli
am 4 Jan. 2023
How do I fix this? Does imshow() is not supported in Matlab Coder ? Please help me. Thank you.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 6 Dez. 2022
You do not fix it. Or you fix it by telling matlab Coder that imshow is an external function and then provide your own imshow that does something
The goal of MATLAB Coder is to generate C or C++ compliant code that does not reply on any operating system or target system functionality not included in the C or C++ standards. Those standards do not include any graphics facility.
Some of the Simulink targets that can be selected support some graphics. Those graphics are handled by the relevant Support Package including graphics blocks that are target specific. For example you can send images to an LCD display on a raspberry pi, but it is rather clumsy. The matlab side does not provide access to those blocks.
In summary: you should only expect matlab Coder to support computation and some specific device interfaces, and you should not expect it to support graphics.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!