How to fit the axes with the native resolution of the image?
4 次查看(过去 30 天)
显示 更早的评论
Hello everyone. I have a GUI where I am loading an image into the axes. I want the axes to wrap around the loaded image's native resolution, much like a MATLAB figure window would do.
How can I do that? Thanks in advance.
0 个评论
采纳的回答
Image Analyst
2020-5-18
truesize
Adjust display size of image
Syntax
Description
truesize(fig,[mrows ncols]) adjusts the display size of an image in a figure, fig, to the dimensions [mrows ncols], in pixels.
Also, see attached demo on zooming.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!