Saving concatenated/ stitched elongated image file in high resolution
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
Using 'vertcat' I have concatenated various images. Now how I can save this concatenated image, so its pixels remain good.
I am trying to save this but image is blurr and details are not visible.
imshow(img)
saveas(gcf,'Figure.png')
I have also tried another way
imshow(img)
fig = gcf;
set(fig, 'units', 'pixels');
set(fig, 'position',[0, 0, 700, 19000]);
set(fig, 'paperunits', 'points');
set(fig, 'paperposition', [0, 0, 700, 19000]);
saveas(fig,'Figure.png')
the img.mat file is 25 MB, but I am not able to save it properly and high resolution.
Need assisstance.
0 件のコメント
採用された回答
DGM
2024 年 3 月 8 日
編集済み: DGM
2024 年 3 月 8 日
Do not save images by taking screenshots of figures. No saveas(), no print(), no exportgraphics(). The result is a degraded, padded facsimile of the original. It's not the same thing.
If you have an image, save the image using imwrite(). If you care about image integrity, use a lossless format like TIFF or PNG (I see you already are).
その他の回答 (1 件)
cui,xingxing
2024 年 3 月 8 日
編集済み: cui,xingxing
2024 年 4 月 27 日
If it's a custom plot image,you can try use exportgraphics build-in function to solve your problem. And specify "Resolution " name-value to custom your resolutions.
Hope it help you!
-------------------------Off-topic interlude, 2024-------------------------------
I am currently looking for a job in the field of CV algorithm development, based in Shenzhen, Guangdong, China,or a remote support position. I would be very grateful if anyone is willing to offer me a job or make a recommendation. My preliminary resume can be found at: https://cuixing158.github.io/about/ . Thank you!
Email: cuixingxing150@gmail.com
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!