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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165952/image.jpeg)
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!