필터 지우기
필터 지우기

Saving concatenated/ stitched elongated image file in high resolution

조회 수: 1 (최근 30일)
Abdul Hannan
Abdul Hannan 2024년 3월 8일
편집: cui,xingxing 2024년 4월 27일
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.

채택된 답변

DGM
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
cui,xingxing 2024년 3월 8일
편집: cui,xingxing 2024년 4월 27일
Have not try with imwrite?
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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by