How to calculate hausdorff distance between two 3D arrays?
Opened this issue · 0 comments
huangmozhilv commented
Is it right to calculate the 3D hausdorff using Euclidean as below:
@numba.jit(nopython=True, fastmath=True)
def euclidean(array_x, array_y):
n = array_x.shape[0]
m = array_x.shape[1]
ret = 0.
for i in range(n):
for j in range(m):
ret += (array_x[i,j,:]-array_y[i,j,:])**2
return sqrt(ret)