Login  Register

minimum distance between objects

Posted by Johannes-P. Koch on May 25, 2010; 12:54pm
URL: http://imagej.273.s1.nabble.com/minimum-distance-between-objects-tp3688186.html

Dear Listers,

I have two images with a set of point objects (derived from a previous
calculation, i.e. basically, centers of mass of various particles).

I want now to calculate the distance of each point (object) in image A to
the closest point (object) in image B (and only to this closest one...).

I suppose, the code I am looking for should 1) calculate ALL distances
from point 1 in image A to ALL points in image B, 2) identify the shortest
and 3) return the value of that distance.

I had a look at Ben's plugin
(http://imagejdocu.tudor.lu/doku.php?id=plugin:analysis:minimum_separation_distance:start)
However, this does sort of a different job. On top, I admit that I am not
so familiar with java (thanks, Wayne, for the macro language!), so it is
not so easy for me to extract the necessary information out of this
plugin.

Is there anything already available (plugin, macro) that does this job, or
at least comes close such that I can build upon it? Or do I have to look
more closely at Ben's plugin (maybe someone could point out what I would
have to look at!)?


Many thanks,
Johannes