Filter löschen
Filter löschen

How to replace "imwrite" in MATLAB Coder?

7 Ansichten (letzte 30 Tage)
WanYu
WanYu am 13 Mai 2020
Kommentiert: David am 16 Apr. 2022
Hi,
So far I understand that MATLAB Coder do not support using imread, imwrite etc, I wish to write the image data into a file and save it.
How can I achieve at MATLAB Coder?
Please help!
Thank you

Antworten (1)

Walter Roberson
Walter Roberson am 13 Mai 2020
You use coder.cevel() or similar techniques to call your own writing function passing in the data and the file name.
Depending on your target system, you might be able to take advantage of available third-party libraries such as libpng http://www.libpng.org/pub/png/libpng.html
  3 Kommentare
David
David am 16 Apr. 2022
Everybody says "just use these external libraries" to solve this apparently very common problem (no imwrite/imread in Coder) but I haven't been able to find a single example piece of code on HOW to do it.
Anyone have an example. It's my first foray into ceval.
Thanks ahead of time.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by