# Reslice image to template without changing transform

**URL:** <https://community.mrtrix.org/t/reslice-image-to-template-without-changing-transform/1567>\
**Category:** Uncategorized\
**Tags:** preprocessing\
**Created:** [April 5, 2018, 9:10pm UTC](https://community.mrtrix.org/t/reslice-image-to-template-without-changing-transform/1567 "2018-04-05T21:10:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimbo](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jimbo/32/1193_2.png) [@jimbo](https://community.mrtrix.org/u/jimbo)\
**Post date:** [April 5, 2018, 9:10pm UTC](https://community.mrtrix.org/t/reslice-image-to-template-without-changing-transform/1567/1 "2018-04-05T21:10:32Z")

</div>

I have an ROI (nii.gz) in the correct orientation (pre-registered to the T1w) however, it has a few more axial slices than the T1w image I am overlaying it on. I use ‘mrtransform -template’ to regrid the ROI, and it ultimately changes its orientation (transform).

Is there a way to regrid without repositioning? I attempted to use ‘mrcop’ to simply remove a few axial slices - but this shifts the ROI axially - which isn’t great.

Many thanks - Jamie

---

<div class="post-metadata">

**Author:** ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)\
**Post date:** [April 6, 2018, 11:28am UTC](https://community.mrtrix.org/t/reslice-image-to-template-without-changing-transform/1567/2 "2018-04-06T11:28:13Z")

</div>

I’m not sure I understand exactly what the problem is. Would you mind posting the output of `mrinfo` on the relevant files (ROI & T1w) before and after regridding, so we can see what the changes are that are problematic?

Also, when you say it shifts the ROI, how are you determining that? Does it shift when displayed in `mrview`, or in `fslview` (I’d expect the two to behave differently here).

---

<div class="post-metadata">

**Author:** ![jimbo](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jimbo/32/1193_2.png) [@jimbo](https://community.mrtrix.org/u/jimbo)\
**Post date:** [April 10, 2018, 8:19pm UTC](https://community.mrtrix.org/t/reslice-image-to-template-without-changing-transform/1567/3 "2018-04-10T20:19:54Z")

</div>

Apologies for the slow response time. I am using MRtrix and DSI studio to visualize the ROIs. After regridding the CST ROI (saved as an nii.gz for viewing purposes) would be shrunken and shifted (strangely).

I resolved the issue by re-gridding earlier in the processing pipeline. I’ll look to recreate the issue and post the mrinfo you asked for.
