Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
imfreehand cursor doesn't match selection
조회 수: 4 (최근 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!