How to export and import images while maintaining the resolution?

Hi there
I wish to export a figure with a given pixel resolution (i.e. Matrix size) to a format understood by Photoshop, perform a few basic changes, and import it again (using f.ex. imread), such that it has the same resolution upon re-import. Currently when I export a figure using print, imwrite or export_fig the figure returns with slightly less resolution upon import.
Does anyone know how to fix this?
Thanks in advance!

回答(1 个)

If anyone else was wondering: By chance, I just stumbled across a solution to this myself, when I read this recent blog on lossy/lossless image exporting:
Cheers

类别

在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by