Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to change imline resume method?

1 vue (au cours des 30 derniers jours)
Felipe Moser
Felipe Moser le 13 Mar 2017
Clôturé : MATLAB Answer Bot le 20 Août 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!

Réponses (1)

Adam
Adam le 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.

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by