ImageJ and equations

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

ImageJ and equations

Juan Francisco-2
Dear all:
  after writing and executing a macro, I can get on the results windows 2 lines consiting on:  in first line I obtain  coordinates X1 and Y1, and in the second line the coordinates X2 and Y2:
  Pls, how is possible to compute the distance between them?. I would like to know how I can write this specific command.
  Thank you evry much for all!!
  JFC

       
---------------------------------

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ and equations

Christopher Coulon-2
> Dear all:
>   after writing and executing a macro, I can get on the results windows 2
> lines consiting on:  in first line I obtain  coordinates X1 and Y1, and in the
> second line the coordinates X2 and Y2:
>   Pls, how is possible to compute the distance between them?. I would like to
> know how I can write this specific command.
>   Thank you evry much for all!!
>   JFC
>

This should work:

> dx = X2 ­ X1;
> dy = Y2 ­ Y1;
> distance = sqrt(dx*dx + dy*dy);

Chris Coulon
       

The GAIA Group
Global Automated Image Analysis
http://gaiag.net
[hidden email]


We welcome image analysis problems in all fields.

Christopher Coulon, Ph.D., Founder