Re: Nearest Neighbor Calculations
Posted by Gabriel Landini on Aug 30, 2007; 6:53pm
URL: http://imagej.273.s1.nabble.com/Nearest-Neighbor-Calculations-tp3698441p3698449.html
> Does anyone know how to perform nearest neighbor distance computations
This was discussed in this list not long ago, perhaps it would be useful to
look in the mailing list.
If doing from the particle centroids you need to:
for each particle compute the distance to all other particles using Pythagoras
theorem and keep the nearest (for the nearest neighbour).
If doing it from the particle surface, you will need to repeat this for all
points in the perimeter for each particle to all points in the perimeter for
all other particles.
I hope it helps
G.