how to get the mouse position in real time using imfreehand

조회 수: 1 (최근 30일)
alex
alex 2014년 10월 8일
댓글: Geoff Hayes 2014년 10월 8일
Hello!
I use imfreehand and i get the x and y coordinates of the mouse,but i can see them after i release the button of the mouse.
Is there any way to see the x,y coordinates while moving the mouse and holding down the button of the mouse in real time?
Thank you very much
  댓글 수: 2
alex
alex 2014년 10월 8일
hFH = imfreehand;
xy = hFH.getPosition
Geoff Hayes
Geoff Hayes 2014년 10월 8일
Alex - can you somehow use the addNewPositionCallback method to add a function callback to the freehand object hFH that would fire whenever a new position is added to the object? See imfreehand for more details.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by