필터 지우기
필터 지우기

I want to get result image and set to variable from output figure matlab

조회 수: 1 (최근 30일)
Faris Ali
Faris Ali 2022년 7월 10일
편집: DGM 2022년 7월 10일
I want to get result image and set to variable from output figure matlab

답변 (1개)

DGM
DGM 2022년 7월 10일
편집: DGM 2022년 7월 10일
That depends on what exactly you mean by "image".
If you want to capture the axes and its contents (plots, images, annotations), you might use getframe and frame2im
If the only thing in the axes is an image as displayed using imshow()/imagesc()/image(), then saving the axes is equivalent to taking a screenshot. Use imwrite to save the image directly instead of saving an adulterated screenshot of it.

Community Treasure Hunt

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

Start Hunting!

Translated by