Macro commands sequence to get coordinates at a selected point

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Macro commands sequence to get coordinates at a selected point

Rogerio Hein-2
Dear all,

I am looking for a macro commands set to get the (X,Y) coordinates at a
point selected on image, by just clicking the mouse button, after
positioning the mouse cursor on it. Could you help me? Many thanks in
advance.

Rogerio

--
Luis Rogerio de Oliveira Hein
Associate Professor
Materials and Technology Department
Faculty of Engineering at Guaratinguetá
UNESP - São Paulo State University
Brazil
Reply | Threaded
Open this post in threaded view
|

Re: Macro commands sequence to get coordinates at a selected point

Jerome Mutterer-3
Rogerio,
ImageJ Tool macros can do this. Type the following code in an editor, and
install using ctrl-i.

macro "example Tool - C000T0f12E"{
getCursorLoc(x, y, z, modifiers);
print (x,y);
}


You can read more about Tool macros from the documentation at:
http://imagej.nih.gov/ij/developer/macro/macros.html#tools
Jerome.




On Fri, Nov 5, 2010 at 5:36 PM, Rogerio Hein <[hidden email]> wrote:
>
> Dear all,
>
> I am looking for a macro commands set to get the (X,Y) coordinates at a
point selected on image, by just clicking the mouse button, after
positioning the mouse cursor on it. Could you help me? Many thanks in
advance.

>
> Rogerio
>
> --
> Luis Rogerio de Oliveira Hein
> Associate Professor
> Materials and Technology Department
> Faculty of Engineering at Guaratinguetá
> UNESP - São Paulo State University
> Brazil