フィルターのクリア

Creating and saving an image where resolution is critical.

2 ビュー (過去 30 日間)
Matt
Matt 2012 年 6 月 13 日
Hello, I've been given some code which generates a test image and displays it as a Matlab figure. The full figure is built up by adding smaller images to the figure. It is now necessary to adapt the code to save the test image as an uncompressed tiff or png file. As I see it, my options are to:
  • work out a way of saving the full resolution image from the generated figure. This is is non-trivial as this seems to result in a border being added around the image and unpredicable rescaling.
OR
  • rewrite the code such that the image is generated within Matlab as an array and write this to an image file. There is a slight difficulty here in that the previous code superimposed text onto the image.
Could anyone suggest which of these is more sensible, or suggest any other approaches?

採用された回答

Jan
Jan 2012 年 6 月 13 日
The creation of the high-resultion image as Matlab array is better, because the conversion from figure to graphics file cannot be controlled exactly in pixel-resolution.
There are some submissions for printing text into pictures in the FEX.

その他の回答 (2 件)

Walter Roberson
Walter Roberson 2012 年 6 月 13 日
Try the MATLAB File Exchange (FEX) contribution "export_fig"

Matt
Matt 2012 年 6 月 18 日
Thank you for your advice on this. I ended up rewriting the code to generate a Matlab array.

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by