How to increase maximum figure size?
古いコメントを表示
Hi everyone, I use MATLAB for image processing. After having done my calculations I would like to save the image. Since the image resolution is higher than my screen resolution I encouter problems while displaying or saving my image.
myimage=rand(600,1800);
figure();
imagesc(myimage);
axis tight;
set(gca, 'Visible', 'off');
set(gca, 'Position', [0 0 1 1]);
set(gcf, 'Position', [1 1 size(myimage, 1) size(myimage, 2)]);
pause(2);
get(gcf,'position')
The height seems to be limited by my screen resolution: 1920x1200. How can I increase the window size so that it fits my actual image size?
Thank you
3 件のコメント
Adam
2016 年 9 月 6 日
If you use imwrite to save the data itself then it can be whatever size you like.
Markus Hosbach
2016 年 9 月 7 日
編集済み: Markus Hosbach
2016 年 9 月 7 日
Adam
2016 年 9 月 7 日
Assuming your image is a 2d indexed image you can map it via the colourmap to produce a true RGB image for saving. I'll put that in an answer below.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Images についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!