Zoom an area of an image while showing whole image
24 次查看(过去 30 天)
显示 更早的评论
May any body help me how can I zoom just an area (a circle) of an image?
For example I want show an image with a zoomed area
1 个评论
回答(3 个)
Image Analyst
2018-10-19
Try my attached demo where I use a scroll panel and min-image where it shows both the zoomed image and a small mini-image where the whole image is visible.
0 个评论
saptarshi jana
2022-8-6
There is an easy and simple solution for it without writing any code. from figure toolbar, 1. View>property editior 2. edit>copy figure, 3. paste it over the originial figure, 4. rescale the size and relocate the pasted figure as per your need, 5. zoom to the part which you want, 6. Insert> arrows, rectangles, etc in the main figure to indicate which part you are magnifying.
3 个评论
Devyani Varshney
2024-1-3
How do you paste it over the original figure in MATLAB ? could you elaborate on the steps?
Devyani Varshney
2024-1-3
okay got it, instead of edit>copy figure (it was not allowing it to paste it again on original figure). I used Ctr+c and Ctr+v
Jan
2018-10-19
- https://www.mathworks.com/matlabcentral/fileexchange/59857-zoomplot
- https://www.mathworks.com/matlabcentral/fileexchange/2884-zoombox
- https://www.mathworks.com/matlabcentral/fileexchange/55969-zoomorientation-axh-state
- https://www.mathworks.com/matlabcentral/fileexchange/61347-zoom-in-on-figure
- https://www.mathworks.com/matlabcentral/fileexchange/30556-popout
- https://www.mathworks.com/matlabcentral/fileexchange/29276-dragzoom-drag-and-zoom-tool
- https://www.mathworks.com/matlabcentral/fileexchange/26007-on-figure-magnifier
- https://www.mathworks.com/matlabcentral/fileexchange/5961-magnify
- https://www.mathworks.com/matlabcentral/fileexchange/49055-maginset
- ...
All of them use an rectangular section for zooming. I assume, you can adjust one of them to display a circular area also.
3 个评论
Adam
2018-10-19
Do you mean in two different axes? Otherwise how do you expect to show the whole image at the same time as a zoomed section?
Image Analyst
2018-10-19
My demo has two different axes. All I can figure is that there must be a single axes on a figure that starts off small and then enlarges as the image is zoomed/magnified. However at some point the axes will take up nearly the whole screen/figure and to zoom further you'd have to give up the requirement that the whole image be visible.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!