Display multiple .ps files on a single page
4 ビュー (過去 30 日間)
古いコメントを表示
This is a spinoff of another question, found here: https://au.mathworks.com/matlabcentral/answers/438024-combine-images-to-display-on-single-page
I need to be able to display multiple .ps images onto a single page. I have a code that works to show different sized images, but there is an annoying border that I can't get rid of.
figure
subplot(2,2,1);
imshow(img1,'Border','tight');
subplot(2,2,2);
imshow(img2,'Border','tight');
subplot(2,2,3);
imshow(img3,'Border','tight');
subplot(2,2,4);
imshow(img4,'Border','tight');
This code works, but requires me to reformat my .ps images into other image formats, such as .png, or .jpg. The easiest way to do this was online, but it is taking a while. Is there a way to display .ps images with or without reformatting them? I have looked around and I haven't found an answer except to do so online or in Ghostscript, both of which only do one at a time. I have several hundred of these annoying images to display.
Please help.
0 件のコメント
回答 (1 件)
Walter Roberson
2019 年 1 月 7 日
No, MATLAB cannot display postscript directly . postscript is a complete programming language that often draws the results through code rather than using pixels . postscript is not an image file format.
If you have a ghostscript executable then you can open multiple operating system shell each invoking ghostscript and process multiple files at aa time that way.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!