i want to alter dpi
2 ビュー (過去 30 日間)
古いコメントを表示
how can i alter dpi of an image and set it to 300.
0 件のコメント
採用された回答
Sean de Wolski
2013 年 2 月 25 日
In print? Specify the rnumber
print(gcf,'-r300')
2 件のコメント
Sean de Wolski
2013 年 2 月 25 日
Yes. You save a figure as an image with the print command:
figure;
surf(peaks);
print(gcf,'-r300','-dpng','test.png')
And for more info:
doc print
その他の回答 (1 件)
Walter Roberson
2013 年 2 月 25 日
dpi is not an physical property of images, and cannot be set by imwrite() or print(). In some kinds of images, dpi can be set in auxillary information headers, such as EXIF headers. Unfortunately MATLAB does not have any routines that can write those headers. See http://www.mathworks.com/matlabcentral/newsreader/view_thread/298784
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!