all "4-connected" distances in a regular rectangular grid

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

all "4-connected" distances in a regular rectangular grid

Aryeh Weiss
Is there a plugin or simple way to find all of the "4-connected"
distances in a rectangular grid. For example, in the attached image, I
want all of the distances that are along the X-Y axes of the grid (in
this case they are 45 degrees relative to the image coordinates).

This would be the 4 nearest neighbors for points in the middle ( as I
try to indicate with the cyan lines).
There are plugins that find the nearest neighbors
(eg BAR>Data Analysis>NN Distances), but I want all of the distances.

Before I write something to do this, I wonder if either it already
exists, of there is a simple way to do it with the existing tools.

Thank in advance

Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051

ImageJ mailing list: http://imagej.nih.gov/ij/list.html

TGT1_MaximaMarked.tif (65K) Download Attachment