get_neighbors#

omnipose.utils.get_neighbors(coords, steps, dim, shape, edges=None, pad=0)[source]#

Get the coordinates of all neighbor pixels. Coordinates of pixels that are out-of-bounds get clipped.