How to replace "imwrite" in MATLAB Coder?

20 views (last 30 days)
WanYu on 13 May 2020
Commented: Walter Roberson on 13 May 2020
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

Answers (1)

Walter Roberson
Walter Roberson on 13 May 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



Community Treasure Hunt

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

Start Hunting!

Translated by