Skip to content

Miscellaneous - Generated mask is shown with different origin from the original image #211

@diazandr3s

Description

@diazandr3s

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:

original_affine_origin

Modified affine:

modified_origin_affine

Metadata

Metadata

Assignees

Labels

0.4.0Targeted to Release version 0.4bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions