Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

imfreehand cursor doesn't match selection

1 Ansicht (letzte 30 Tage)
B-M
B-M am 12 Jul. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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));

Antworten (1)

Don Zheng
Don Zheng am 19 Jul. 2017
Try putting a 'drawnow' command before the 'imfreehand' call:
drawnow
coords = getPosition(imfreehand('Closed',0));

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by