Project-MONAI / Project-MONAI/MONAI

Versatile distance transforms (Euclidean and Geodesic)

Open
#1,332 8 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature request Module: networks Module: transform WG: Research WG: Transforms
Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

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

Additional context
Example use cases of distance transforms in segmentaiton:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points. Start by reviewing the linked MONAI pull request and the scipy distance_transform_edt and distance_transform_cdt alternatives, then clarify the supported Euclidean and geodesic behavior and differentiability requirements. Done means a MONAI-based implementation covers the agreed distance transforms with appropriate validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.