Macro commands to move overlay
Posted by
Straub, Volko A. (Dr.) on
Aug 28, 2013; 9:48am
URL: http://imagej.273.s1.nabble.com/Macro-commands-to-move-overlay-tp5004590.html
I have written a macro that creates a series of rectangular overlays on an image. Once the overlays are created I can click on an overlay label/index and use the mouse to move the overlay. However, I would like to move the existing overlays from a macro (i.e. enter specific coordinates rather than manually drag the overlay with the mouse). I am aware that I could select the overlay from a macro, then delete it and redraw a new overlay at the new coordinates. However, doing it this way results in altering the index for all other overlays and gives the new overlay the highest index. This makes it a bit difficult to keep track of the indices of all overlays. So, I was wondering whether there are any commands that can be used to directly move the position of an existing overlay equivalent to clicking on the overlay with the mouse and dragging it?
Any advice/suggestion would be very welcome.
Volko
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html