How to save very large image to original resolution

조회 수: 9 (최근 30일)
CivilEngineer27
CivilEngineer27 2021년 8월 24일
답변: Yair Altman 2021년 8월 26일
I have a very large image saved via .tif file (70,499 x 8400). I am trying to plot and fill polygons on this image that are the result from an artifical intelligence neural network (points are in .JSON format). I have no problem plotting the images on the large image, my trouble comes from trying to save the figure to the original resolution. I have tried using export_fig('filename', '-native') but errors keep popping up saying that the image is too large, I have tried using 'imwrite' as well as 'print' with no success. Is there anyway to to achieve this?
  댓글 수: 3
CivilEngineer27
CivilEngineer27 2021년 8월 25일
I guess my question revolves how to use 'imwrite' in order to save the image to original resolution after I have made my subsequent plots on the image?
DGM
DGM 2021년 8월 25일
Since you'd mentioned imwrite(), I was assuming that you had already been able to apply those to the image itself.
I don't know what exactly you're doing with plot tools, but if you're using ROI tools, you can use createMask() and basic image operations to alter the underlying image. If that's something that you need to figure out how to do, I suggest coming up with a reduced-size conceptual example of the things you're trying to embed and we can see what the options are.

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2021년 8월 25일
Did you try exportgraphics()?
  댓글 수: 3
Image Analyst
Image Analyst 2021년 8월 26일
Then try export_fig
CivilEngineer27
CivilEngineer27 2021년 8월 26일
Unfortunately, I have. Since the image is so large (the image is an orthomosaic map constructed from drone images) export_fig is unable to process an image of that size and resolution.

댓글을 달려면 로그인하십시오.


Yair Altman
Yair Altman 2021년 8월 26일
Try to use export_fig's sister image-export utility, ScreenCapture: https://www.mathworks.com/matlabcentral/fileexchange/24323-screencapture

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by