# Problem with registering AAL parcellated image with DTI tract file

**URL:** <https://community.mrtrix.org/t/problem-with-registering-aal-parcellated-image-with-dti-tract-file/6992>\
**Category:** Uncategorized\
**Created:** [September 25, 2023, 8:30pm UTC](https://community.mrtrix.org/t/problem-with-registering-aal-parcellated-image-with-dti-tract-file/6992 "2023-09-25T20:30:29Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![hyting](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@hyting](https://community.mrtrix.org/u/hyting)\
**Post date:** [February 5, 2024, 11:55am UTC](https://community.mrtrix.org/t/problem-with-registering-aal-parcellated-image-with-dti-tract-file/6992/21 "2024-02-05T11:55:01Z")

</div>

Hi,

I got a reply from the FSL forum. Just change the first two lines in the `T1_2_MNI152_2mm.cnf`.

In my case, my reference image is `MNI152_1mm`, so I changed the reference information in the config file from `MNI152_2mm` to `MNI152_1mm`, and it began to run the `fnirt` now. Here are the first two lines of my config file after changing them.

 ![image](https://community.mrtrix.org/uploads/default/original/2X/b/b505c4ea9b283d285434db9de6590e531fd7fd44.jpeg)

Hope this will be helpful to you.

Cheers,  
Yuting

---

<div class="post-metadata">

**Author:** ![hyting](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@hyting](https://community.mrtrix.org/u/hyting)\
**Post date:** [February 5, 2024, 12:19pm UTC](https://community.mrtrix.org/t/problem-with-registering-aal-parcellated-image-with-dti-tract-file/6992/22 "2024-02-05T12:19:01Z")

</div>

Hello,

I noticed that in your case, you are trying to register MNI to T1, however the config file `T1_2_MNI152_2mm.cnf` is written to register T1 to MNI, you might need to register T1 to MNI first, and then apply the inverse warp and transformation to the MNI.

> [@math\_priyanka](#):
>
> flirt -in $FSL\_DIR/data/standard/MNI152\_T1\_2mm\_brain.nii.gz -ref T1\_masked -omat mni2t1.mat -datatype int -out mni2t1.nii.gz

Best regards,  
Yuting

[Previous page](https://community.mrtrix.org/t/problem-with-registering-aal-parcellated-image-with-dti-tract-file/6992.md?page=1)
