#  Issue with Resliced Images from SPM12 Not Reflecting Alignment in 3D Slicer

**URL:** <https://discourse.slicer.org/t/issue-with-resliced-images-from-spm12-not-reflecting-alignment-in-3d-slicer/40716>\
**Category:** Support\
**Created:** [December 16, 2024, 3:00pm UTC](https://discourse.slicer.org/t/issue-with-resliced-images-from-spm12-not-reflecting-alignment-in-3d-slicer/40716 "2024-12-16T15:00:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akihito](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akihito/32/78411_2.png) [@Akihito](https://discourse.slicer.org/u/Akihito)\
**Post date:** [December 16, 2024, 3:00pm UTC](https://discourse.slicer.org/t/issue-with-resliced-images-from-spm12-not-reflecting-alignment-in-3d-slicer/40716/1 "2024-12-16T15:00:07Z")

</div>

I am currently evaluating the effects of hypertensive disorders of pregnancy on white matter in children using pediatric brain MRI data and 3D Slicer. After performing image alignment on 3DT1 images using SPM12, I noticed that the alignment adjustments were not reflected when checking the images in 3D Slicer.

### Steps Taken:

1. In SPM12, I used the **Display** tab to load the images and adjusted the `pitch, roll, and yaw` values for alignment.

- The alignment values were within approximately ±0.2, with fine adjustments in the range of 0.0X.

1. After performing the alignment, I executed **reslice** processing and then loaded the images into 3D Slicer.

- **Result:** The alignment adjustments were not reflected.

### Test Results:

- `pitch = 0.5` → The alignment was reflected correctly.
- `pitch = 0.4` → The alignment was reflected, but the output image was identical to the one generated with `pitch = 0.5`.
- `pitch = 0.3` → The alignment was reflected, but again identical to the `pitch = 0.5` image.
- `pitch = 0.2` → The alignment was **not** reflected.

From these results, I suspect that the `pitch` values are being rounded, as follows:  
`0.1 → 0, 0.2 → 0, 0.3 → 0.5, 0.4 → 0.5, 0.5 → 0.5`.

* * *

### Question:

Could you advise me on the appropriate steps or settings to ensure that the alignment results from SPM12 are accurately reflected when viewed in 3D Slicer?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 16, 2024, 3:17pm UTC](https://discourse.slicer.org/t/issue-with-resliced-images-from-spm12-not-reflecting-alignment-in-3d-slicer/40716/2 "2024-12-16T15:17:17Z")

</div>

How did you conclude that the alignment asjustments were not reflected in Slicer? What you expected to see and what you saw instead?

What file format have you used? NIFTI file format has a flaw that image orientation can be specified redundant ways and each software interprets ambiguous cases differently. If you are using NIFTI and not familiar with qform and sform already, then it could be useful if you could read up a bit on it and then investigate how SPM changes the files during alignment.

We could look into this alsonif you share the files (image before and after alignment) by uploading to dropbox, onedrive, etc. and post the link here; or at least print the headers of the two files and copy it here.
