-
Notifications
You must be signed in to change notification settings - Fork 1.4k
added spacing to surface distances calculations #6144
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
added spacing to surface distances calculations #6144
Conversation
…//github.com/gasperpodobnik/MONAI into 6137-add-spacing-to-surface-distance-metrics
…//github.com/gasperpodobnik/MONAI into 6137-add-spacing-to-surface-distance-metrics
I, gasperp <gasper.podobnik@gmail.com>, hereby add my Signed-off-by to this commit: 2d449b4 I, gasperp <gasper.podobnik@gmail.com>, hereby add my Signed-off-by to this commit: 26dd22c I, gasperp <gasper.podobnik@gmail.com>, hereby add my Signed-off-by to this commit: 753253c Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
|
thank you, could you please add a few test cases for example in this file: https://github.com/Project-MONAI/MONAI/blob/dev/tests/test_surface_distance.py then I can edit the PR to address the mypy issues |
|
Hey, I noticed that the typical usage of the metrics classes is to simply call them (i.e. |
|
thanks @gasperpodobnik, I think we can add Line 321 in 600621d
and Line 52 in 600621d
for additional parameters, could you please help revise if you agree? |
|
sure :) |
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
…7-add-spacing-to-surface-distance-metrics Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
…7-add-spacing-to-surface-distance-metrics
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
Signed-off-by: gasperp <gasper.podobnik@gmail.com>
for more information, see https://pre-commit.ci
|
/build |
wyli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
many thanks, it looks good to me.
Fixes #6137 .
Description
A user can now pass a
spacingparameter to surface distance metrics (Hausdorff distance, surface distance, surface dice), so that correct results can be obtained for images with non-isotropic spacing (e.g. (0.5, 0.5, 2) mm).If
spacingis a sequence, it must be of length equal to the image dimensions; if a single number, this spacing is used for all axes. IfNone, spacing of unity is used. Defaults toNoneso that current behaviour is preserved.Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.