I want to get result image and set to variable from output figure matlab
2 次查看(过去 30 天)
显示 更早的评论
I want to get result image and set to variable from output figure matlab
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!