Fwd:Re: DISTANCE BETWEEN TWO POINTS

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

Fwd:Re: DISTANCE BETWEEN TWO POINTS

Mariarosa-2
Dear Christoper,
thanks for your help.....but ,you know, is a bit difficult for me to understand How I have to apply the methodology that you have sent me.The question is: Whit this code I have to generate a Macro?

cheers

Mariarosa ---------- Initial Header -----------

From      : "Christopher Coulon" [hidden email]
To          : "Mariarosa" [hidden email]
Cc          :
Date      : Wed, 17 May 2006 06:08:17 -0700
Subject : Re: DISTANCE BETWEEN TWO POINTS







> > I¹m new to ImageJ . I¹m using this amazing software to analyze a image stacks
> > where a particle move close to a fixed surface. I just found easly  the
> > centroid of the particle , but now I want to know the distance between the
> > centroid and a fixed point on the surface. Actually I¹m using straightline
> > selection ,but I have to analyze hundreds and hundreds of frame. Anyone knows
> > if I can do it automatically, using other tool or any plug-in
>
> Mariarosa,
>
> If you know the x1, y1 position of the fixed point and the x2, y2 position
> of your centroid, you get the distance between them by the Pythagorean
> Theorem:
>
> > x1 = 200; // fixed x
> > y1 = 200; // fixed y
> > x2 = getResult(ŒX¹, nResults); // assuming your centroid x is the last
> > measurement
> > y2 = getResult(ŒY¹, nResults);
> > dx = x1 ­ x2;
> > dy = y1 ­ y2;
> > distance = sqrt(dx*dx + dy*dy);
> > print(³distance = ³ + distance);
> >
> I hope this helps.
>
> Chris Coulon
>        
>
> The GAIA Group
> Global Automated Image Analysis
> http://www.gaiag.net
> [hidden email]
>
>
> We welcome image analysis problems in all fields.
>
> Christopher Coulon, Ph.D., Founder
>
>
>
>
>
>
>
>
>
>