How to select a point with coordinates with a GUI?
2 ビュー (過去 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!