JunMa11 / SegLossOdyssey

A collection of loss functions for medical image segmentation
Apache License 2.0
3.76k stars 597 forks source link

why is there no resolution input in the distance_map computing(scipy.ndimage.distance_transform_edt)? #47

Closed SummerZ2020 closed 11 months ago

SummerZ2020 commented 1 year ago

Hello, Thanks for sharing the code. it helps me a lot. The paper (loss odyssey ) is also great for me to know more about loss in medical segmentation. I have found that in your code, the resolution is not considered in distance_map computing. However, it is used herehttps://github.com/LIVIAETS/boundary-loss. Why is the resolution not be used here? Looking forward to your reply. Thanks a lot.

JunMa11 commented 11 months ago

Thanks for your interest.

We didn't use it because nnunet already resamples them into the same spacing during preprocessing.