How to select a point with coordinates with a GUI?
4 views (last 30 days)
Show older comments
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.
Accepted Answer
Jan
on 29 Dec 2017
Edited: Jan
on 29 Dec 2017
- 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 Comments
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!