Detecting updated position of imellipse?
Ältere Kommentare anzeigen
Hi,
I can use getPosition to get the original position of imellipse drawn, however i am unable to find the updated position once the ellipse has moved. I know this can be achieved by right clicking on the image screen, however, I am unsure how to do this automatically through code. Any help you could offer would be appreaciated.
5 Kommentare
Image Analyst
am 4 Apr. 2015
How was the ellipse moved?
Megan
am 4 Apr. 2015
Image Analyst
am 4 Apr. 2015
When you move and then double click in the ellipse, are you saying that it does not return the current size and location parameters?
Megan
am 4 Apr. 2015
Image Analyst
am 5 Apr. 2015
It will only give you the parameters once you've finished adjusting it and double click on it, not while you are in the process of making adjustments.
Antworten (1)
Philip Caplan
am 13 Apr. 2015
0 Stimmen
It looks like you are trying to get the position of the ellipse when you click and drag it interactively. The first example in the documentation for "imellipse" at:
describes how to use "addNewPositionCallback" to write the current position (as the ellipse moves) to the figure title. A better description of this callback is given at:
Similar to the 'position' variable when creating the "imellipse", the input argument to the "addNewPositonCallback" has the same information about the bounding rectangle of the ellipse.
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!