-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Is your feature request related to a problem? Please describe.
The package currently provide GPU-based approximations of Geodesic and Euclidean distance transforms.
Following #42 fast marching now allows for more accurate computations of Euclidean distance transforms but this is limited to CPU operations and remains an approximation.
Describe the solution you'd like
Having a GPU implementation of an exact Euclidean Distance Transform would strengthen the package.
Describe alternatives you've considered
Rely on third party libs for this. e.g. CUCIM, Tensorflow or PBA+
https://docs.rapids.ai/api/cucim/stable/api/#cucim.core.operations.morphology.distance_transform_edt
https://www.tensorflow.org/addons/api_docs/python/tfa/image/euclidean_dist_transform
https://github.com/orzzzjq/Parallel-Banding-Algorithm-plus
Having this integrated in FastGeodis withouth the need for external dependencies would nonetheless be nice and make the pytorch link tighter.
Additional context
This feature request has been voice earlier, e.g.:
#40 (comment)
Project-MONAI/MONAI#1332 (comment)
The CUCIM code, based on PBA+ is released under MIT, seems fairly standalone, and could thus be copy-pasted in this repo for convenience:
https://github.com/rapidsai/cucim/tree/main/python/cucim/src/cucim/core/operations/morphology