Info
この質問は閉じられています。 編集または回答するには再度開いてください。
imfreehand cursor doesn't match selection
1 回表示 (過去 30 日間)
古いコメントを表示
I'm using imfreehand as a freehand user input of sorts - however, the cursor seems to be seperated from where it actually draws the freehand region which makes it unusable. Is this a known bug/am I doing something wrong? I've attached an example image below:
The relevant line of code is simply:
coords = getPosition(imfreehand('Closed',0));
0 件のコメント
回答 (1 件)
Don Zheng
2017 年 7 月 19 日
Try putting a 'drawnow' command before the 'imfreehand' call:
drawnow
coords = getPosition(imfreehand('Closed',0));
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!