glue icon indicating copy to clipboard operation
glue copied to clipboard

Nearest-neighbor linking

Open astrofrog opened this issue 5 years ago • 1 comments

This will require a bit of thinking but it would be nice to have a way to have some kind of 'nearest-neighbor' linking. For instance, if I select points in a catalog, I might want to select the nearest or k-nearest or nearest-within-a-radius pixels in an associated image.

astrofrog avatar May 28 '20 14:05 astrofrog

that would be great indeed, it would be nice for my microscopy use cases too.

I have been playing a bit with the scipy.spatial module lately to achieve that goal (not just on image, but also on set of points). It works very well for my medium size datasets (~20K points)

edit: link to the doc of that module: https://docs.scipy.org/doc/scipy/reference/spatial.html

specmicp avatar May 28 '20 19:05 specmicp