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

Added template framework for applying transforms to distance maps #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andy-s-ding
Copy link

nnUNet currently does not have a framework for loading in distance maps that were calculated offline, though I have a version of nnUNet with a modified dataloader that can do this. For full functionality, distance maps should also be cropped and transformed in a similar fashion to the image and segmentation data. The easiest way to do this is to add another key in the data dictionary called 'dist_map'. If the data has this key, then a transform can call _apply_to_dist_map. Modifying the BasicTransform class is the simplest way to add this functionality to other transforms.

nnUNet currently does not have a framework for loading in distance maps that were calculated offline, though I have a version of nnUNet with a modified dataloader that can do this. For full functionality, distance maps should also be cropped and transformed in a similar fashion to the image and segmentation data. The easiest way to do this is to add another key in the data dictionary called 'dist_map'. If the data has this key, then a transform can call _apply_to_dist_map. Modifying the BasicTransform class is the simplest way to add this functionality to other transforms.
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

Successfully merging this pull request may close these issues.

1 participant