Closed lericson closed 7 years ago
I replaced your distance thingy with this
all_dists = cdist(src[0:3,:].T, dst[0:3,:].T, 'euclidean') indices = all_dists.argmin(axis=1) distances = all_dists[np.arange(all_dists.shape[0]), indices]
Thanks @lericson. Good addition.
I replaced your distance thingy with this