Is there an example of how to add a callback to drawcircle to get the current position?
2 ビュー (過去 30 日間)
古いコメントを表示
I need to get the curent radius and position of the circle using drawcircle() in GUIDE. Is there an example of how to add a callback? I'm not sure how to use the images.roi.CircleMovingEventData class
Thank you
0 件のコメント
採用された回答
Walter Roberson
2019 年 3 月 9 日
h = drawcircle('Center', [500, 500], 'Radius', 100, 'StripeColor', 'red'); %adjust parameters as needed
L1 = addlistener(h, 'ROIMoved', @(hObject, event) disp(event.CurrentCenter)) %example callback
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!