Hey!
I try to implement a new loss function, in which the calculation of the signed distance transform (https://en.wikipedia.org/wiki/Signed_distance_function 96) of the predicted segmentation label is required. The SDT can be computed using the euclidean distance transform. A comparable function is available in the scipy package (https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.morphology.distance_transform_edt.html 87). Does anyone know how to compute the SDT of the predicted segmentation label to perform the backward operation afterwards?