How to select a point with coordinates with a GUI?
5 次查看(过去 30 天)
显示 更早的评论
I would like to put an image on the screen, and select two points with the mouse in a GUI window. Is it possible? Moreover the image size is very big - cannot fit into the screen - so rescaling or scrolling is needed.
采纳的回答
Jan
2017-12-29
编辑:Jan
2017-12-29
- Import the image with imread
- Display it with image, imagesc or imshow. These commands scale the image to the available space already.
- If you want a scrolling instead, https://www.mathworks.com/help/images/ref/imscrollpanel.html imscrollpanel would help. Further solutions can be found in the FileExchange: https://www.mathworks.com/matlabcentral/fileexchange/?utf8=%E2%9C%93&term=image+scroll
- Use ginput to select points
You can search in your local documentation or online at the MathWorks website, if the commands belong to the standard toolbox.
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!