Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

imfreehand cursor doesn't match selection

조회 수: 4 (최근 30일)
B-M
B-M 2017년 7월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
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));

답변 (1개)

Don Zheng
Don Zheng 2017년 7월 19일
Try putting a 'drawnow' command before the 'imfreehand' call:
drawnow
coords = getPosition(imfreehand('Closed',0));

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by