glue
glue copied to clipboard
Nearest-neighbor linking
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.
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