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

Hausdorff distance in ANTsR/ANTsPy? #348

Closed
ntustison opened this issue Apr 5, 2021 · 5 comments
Closed

Hausdorff distance in ANTsR/ANTsPy? #348

ntustison opened this issue Apr 5, 2021 · 5 comments

Comments

@ntustison
Copy link
Member

Hey @stnava ,

Based on our WMH work, I'd like to put the Hausdorff distance functionality from ITK in ANTsR/ANTsPy. First, I didn't find it but I wanted to make sure it wasn't already implemented somewhere. Second, any issues with its inclusion? Thanks.

@stnava
Copy link
Member

stnava commented Apr 5, 2021 via email

@ntustison
Copy link
Member Author

Okay, great. Will start working on it.

@dorianps
Copy link
Collaborator

dorianps commented Apr 5, 2021

There is a function I included in LESYMAP which computes mask distances (average symmetric distance, Hausdorff, etc.).

https://github.com/dorianps/LESYMAP/blob/cd13aa0cfaa3fab582cd2099be07c45339220e1f/R/minSegDistance.R

I think I checked that "max" output is exactly corresponding with Hausdorff produced by other tools. You can use that code or copy/rename the entire function if you like.

@dorianps
Copy link
Collaborator

dorianps commented Apr 5, 2021

Errata: no average symmetric distance in that function, just one way distance of one mask (predicted) from the other (manual).

@ntustison
Copy link
Member Author

Thanks for the heads up @dorianps . I think, though, that I'll stick with the ITK implementation.

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

No branches or pull requests

3 participants