필터 지우기
필터 지우기

How to save full-sized images with overlays from a figure window?

조회 수: 2 (최근 30일)
Alan Peters
Alan Peters 2021년 4월 16일
편집: Alan Peters 2021년 4월 16일
I have a matlab figure that contains an image. In the figure, the image has lines and circles drawn on it. The image is relatively large (3k x 4k) and is therefore resized by Matlab's figure display method. I want to save the image and the objects plotted over it in the original resolution of the image. The plots would have to be scaled up from the size they are in figure and combined with the pixels in the image -- overwriting the pixels that they overlay. It is not one of my programs that generates the figures from my image. It plots on my image in the figure. But I want to save the image in its original size with the overlays merged into it. To further complicate matters, I have a sequence of images being so displayed as a sequence of figures. So I want to write a script that accesses each figure and saves the image it displays at the image's full original resolution (as say a png file) with the plotted graphics in the figure rescaled to match the original resolution of the image.
How can I do that?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by