Open
Description
Is your feature request related to a problem? Please describe.
Several segmentation pipelines, and in particular interactive segementation ones, rely on some form of distance transform (e.g. Euclidean, Chamfer or Geodesic Distance Transform).
At the moment there is no off-the-shelf pytorch function to compute these.
Describe the solution you'd like
A MONAI-based implementation of distance transforms (ideally differentiable) would be fantastic. It woul accelerate uptake of such methods.
Describe alternatives you've considered
- Relying on scipy functions such as distance_transform_edt and distance_transform_cdt
- Rely on external code such as GeodisTK
Additional context
Example use cases of distance transforms in segmentaiton: