Info

This question is closed. Reopen it to edit or answer.

How to change imline resume method?

1 view (last 30 days)
Felipe Moser
Felipe Moser on 13 Mar 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
I'm working with imline (this also would apply to roipoly) and once I have positioned my line in the right position I would like to change the method of returning the results. In order to obtain the position of the line, it's need to double-click on the line. How could I change this to just pressing "enter" or pushing a button?
Any help is much appreciated!

Answers (1)

Adam
Adam on 13 Mar 2017
You don't have to double click, you can just draw the imline, without using 'wait' and under your pushbutton or keyboard callback you can call
getPosition( hLine )
where hLine is your imline object.

This question is closed.

Community Treasure Hunt

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

Start Hunting!