Finding 'Zoomed' coordinates in an image
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a BW image as shown below on which some points are marked.
I want to write a code to zoom into the image so that the image and these points look like the one shown below:
After zooming, the coordinates of these points would have changed in the displayed image.
My question is, how to find these final coordinates after zooming?
Thanking You, Harshil
0 个评论
回答(1 个)
Image Analyst
2016-2-29
When you plotted the magenta + symbols with plot, you used plot(x,y,'m+'). The position of the symbols on your screen change but the x and y do not. So if you plotted a blue circle at the same x and y, plot(x, y, 'bo'), it would show up at the very same location as the magenta plus signs.
See attached demo for zooming and scrolling via a scroll panel.
3 个评论
Image Analyst
2016-2-29
I guess you'd crop out the image from the bounding box of the salient points, and then run SURF again on the cropped image to get the new coordinates in the new cropped image.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!