platipy
platipy copied to clipboard
Investigate using dilate for surface dice
Nice work!
I'm not sure if timing is really an issue, but the distance maps can take a while to compute so an alternative could be to dilate each contour with sitk.BinaryDilate(a_contour, tau_in_voxel_units)
Another point to discuss: there is also a function sitk.BinaryDilate
which seems to do something very similar to sitk.BinaryContour
- but with different output!
Originally posted by @rnfinnegan in https://github.com/pyplati/platipy/pull/129#discussion_r877591835