-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 <[email protected]>, hereby add my Signed-off-by to this commit: 2d449b4 I, gasperp <[email protected]>, hereby add my Signed-off-by to this commit: 26dd22c I, gasperp <[email protected]>, hereby add my Signed-off-by to this commit: 753253c Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
I, gasperp <[email protected]>, hereby add my Signed-off-by to this commit: 4b15604 I, gasperp <[email protected]>, hereby add my Signed-off-by to this commit: 5d7bb44 Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
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 <[email protected]>
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
…7-add-spacing-to-surface-distance-metrics Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
…7-add-spacing-to-surface-distance-metrics
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
Signed-off-by: gasperp <[email protected]>
for more information, see https://pre-commit.ci
/build |
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
spacing
parameter 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
spacing
is 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 toNone
so that current behaviour is preserved.Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.