Show image with dialog box for user input
4 ビュー (過去 30 日間)
古いコメントを表示
I would like to show an image and user to use datatips and export the datatips and then run the subsequent code based on the exported datatips.
How to control the user input during this step and then proceed. Right now, I have a dialog box "Select two datatips" and imshow() but the code proceeds to run immediately after the imshow() command.
1 件のコメント
Walter Roberson
2021 年 10 月 28 日
I wonder if brushing might be more appropriate for your purposes ? https://www.mathworks.com/help/matlab/ref/matlab.graphics.interaction.internal.brush.html
回答 (1 件)
Srijith Kasaragod
2021 年 10 月 28 日
Hi Abhilash,
Once you display the image to user, you can use 'datacursormode' function to create a data cursor manager object for the current figure. Calling 'getCursorInfo' on this object returns a structure with one of the fields as the position of the selected datatip point on the image.
Regards.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!