spinalcordtoolbox / manual-correction

Scripts for the manual correction of spinal cord labels
MIT License
4 stars 0 forks source link

Allow creation of empty mask #15

Closed valosekj closed 1 year ago

valosekj commented 1 year ago

This PR adds a feature that creates an empty mask if segmentation does not exist. This is useful, for example, when creating MS lesion segmentations from scratch.

Please, could you double-check especially the part of the code responsible for empty mask creation: https://github.com/spinalcordtoolbox/manual-correction/blob/bba77adbb97f28fa68c5c13a4b81e69a8e547331/utils.py#L254-L264

Fixes https://github.com/spinalcordtoolbox/manual-correction/issues/4

valosekj commented 1 year ago

Thank you for reviewing! I addressed your comments. --> merging