Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hausdorff distance as a new classification metric #1990

Closed
rabinadk1 opened this issue Aug 9, 2023 · 2 comments · Fixed by #2122
Closed

Add Hausdorff distance as a new classification metric #1990

rabinadk1 opened this issue Aug 9, 2023 · 2 comments · Fixed by #2122
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rabinadk1
Copy link

🚀 Feature

Add Hausdorff distance as a new classification metric.

Motivation

Hausdorff distance measures how far two subsets of a metric space are from each other. Informally, two sets are close in the Hausdorff distance if every point of either set is close to some end of the other set. The Hausdorff distance is the longest distance you can be forced to travel by an adversary who chooses a point in one of the two sets, from where you then must travel to the other set. In other words, it is the greatest of all the distances from a point in one set to the closest point in the other set. More on: https://en.wikipedia.org/wiki/Hausdorff_distance

Pitch

Haussdorff distance is an important metric to find the smoothness of the predicted segmentation map. It is widely used for segmenting medical images.

Alternatives

We can find the following implementations in other libraries.

  1. Scikit Image: https://scikit-image.org/docs/stable/api/skimage.metrics.html#skimage.metrics.hausdorff_distance
  2. Scipy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.directed_hausdorff.html
  3. MONAI: https://docs.monai.io/en/latest/_modules/monai/metrics/hausdorff_distance.html
@rabinadk1 rabinadk1 added the enhancement New feature or request label Aug 9, 2023
@SkafteNicki SkafteNicki added this to the v1.2.0 milestone Aug 18, 2023
@SkafteNicki SkafteNicki modified the milestones: v1.2.0, v1.3.0 Aug 30, 2023
@matsumotosan
Copy link
Member

@SkafteNicki I can take a look at this to get started on the segmentation related metrics.

@SkafteNicki
Copy link
Member

Hi @matsumotosan, i will assign it to you :]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@Borda @SkafteNicki @matsumotosan @rabinadk1 and others