Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
imfreehand cursor doesn't match selection
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Don Zheng
il 19 Lug 2017
Try putting a 'drawnow' command before the 'imfreehand' call:
drawnow
coords = getPosition(imfreehand('Closed',0));
0 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!