-
Notifications
You must be signed in to change notification settings - Fork 264
Miscellaneous - Generated mask is shown with different origin from the original image #211
Description
Describe the bug
Slicer shows the automatic label with a different origin. Apparently, it is related to the way ITK interprets the nifty header. From this discussion, it seems nibabel and nifty differ in the way they interpret the nifty header (nipy/nibabel#863)
CC @wyli
To Reproduce
Using the Fusion Challenge dataset MICCAI 2012 (OASIS project) to train highresnet for Brain parcellation.
Fusion Challenge dataset MICCAI 2012: 35 brain MRI scans obtained from the OASIS project. The manual brain segmentations of these images were produced by Neuromorphometrics, Inc. (http://Neuromorphometrics.com/) using the brainCOLOR labeling protocol.
Expected behavior
To show the label in the same origin as the original image
Screenshots
The workaround for this is to first change the affine of images and labels. Then use MONAI Label to train the model. See the affine changes in the following images
Original Affine:
Modified affine:

