# Import DTI nifti

**URL:** <https://discourse.slicer.org/t/import-dti-nifti/8047>\
**Category:** SlicerDMRI\
**Created:** [August 15, 2019, 7:39pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047 "2019-08-15T19:39:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DTI](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DTI](https://discourse.slicer.org/u/DTI)\
**Post date:** [August 15, 2019, 7:39pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/1 "2019-08-15T19:39:03Z")

</div>

Hi,  
Is it possible to load tensor data into slicer directly? I had problems with diffusion orientation using the dwi import tool, so I calculated the tensors outside slicer with fsl. Now I would like to import the tensor data (nifti) to perform streamline tractography.  
is this possible?  
Thank you!

---

<div class="post-metadata">

**Author:** ![ljod](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ljod/32/652_2.png) [@ljod](https://discourse.slicer.org/u/ljod)\
**Post date:** [August 15, 2019, 10:12pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/2 "2019-08-15T22:12:37Z")

</div>

Hi! Did you try DICOM import using the new DCM2nii module? This will be the preferred way to load DWI data moving forward. It will replace DWIConvert.

---

<div class="post-metadata">

**Author:** ![DTI](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DTI](https://discourse.slicer.org/u/DTI)\
**Post date:** [August 16, 2019, 2:27pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/3 "2019-08-16T14:27:08Z")

</div>

Hi  
Thank you, that worked very well for DICOM (that was acquired in coronal fashion)!

Can it also handle nifti files?

Thank you, Lorenz

---

<div class="post-metadata">

**Author:** ![ljod](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ljod/32/652_2.png) [@ljod](https://discourse.slicer.org/u/ljod)\
**Post date:** [August 16, 2019, 2:41pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/4 "2019-08-16T14:41:06Z")

</div>

Awesome!!! Are you the Lorenz Epprecht that I know? I was optimistic this fix would work for your data. Glad you’ve tried it out now!

Technically the dcm2nii program can output nifti files. The current implementation in Slicer uses dcm2nii in order to convert DICOM to nrrd. Future work could ideally leverage better nifti file loading.

Can your project work using DICOM instead of nifti?

---

<div class="post-metadata">

**Author:** ![DTI](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DTI](https://discourse.slicer.org/u/DTI)\
**Post date:** [August 16, 2019, 2:56pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/5 "2019-08-16T14:56:18Z")

</div>

Hi Lauren. Yes, it’s me!🙂 Just thought the topic might be of interest to a wider readership.

Thanks for the fix! I don’t have DICOM for all subjects, but will try to convert nifti back to DICOM for importing to Slicer!

I think the nifti import feature would be interesting for everyone working with HCP data for example.

This is a great step forward, really! I’m very happy this works!

Thank you! Lorenz

---

<div class="post-metadata">

**Author:** ![ljod](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ljod/32/652_2.png) [@ljod](https://discourse.slicer.org/u/ljod)\
**Post date:** [August 16, 2019, 3:01pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/6 "2019-08-16T15:01:44Z")

</div>

I agree about nifti import being important. There is nifti import in DWIConvert that may work with the correct options selected. I believe we are converting HCP data outside of Slicer to nrrd and that script is something developed by the PNL: [https://github.com/pnlbwh](https://github.com/pnlbwh)

Nice to hear from you, Lorenz!

---

<div class="post-metadata">

**Author:** ![amymanson](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@amymanson](https://discourse.slicer.org/u/amymanson)\
**Post date:** [September 12, 2019, 9:15am UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/7 "2019-09-12T09:15:01Z")

</div>

Hi! Where can I find this dcm2nii module for Slicer, please?  
Thank you

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 12, 2019, 2:24pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/8 "2019-09-12T14:24:13Z")

</div>

It’s an extension

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/7/479c08867250b01ab65ae71fa7408d2cf18a2108.jpeg)

---

<div class="post-metadata">

**Author:** ![amymanson](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@amymanson](https://discourse.slicer.org/u/amymanson)\
**Post date:** [September 12, 2019, 3:23pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/9 "2019-09-12T15:23:33Z")

</div>

Is this only available for a specific operating system or Slicer version? I can’t seem to find it in my Extensions Manager.

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [September 12, 2019, 3:36pm UTC](https://discourse.slicer.org/t/import-dti-nifti/8047/10 "2019-09-12T15:36:00Z")

</div>

We are having some issues with build system today ([Extensions will be late today - update on build system](https://discourse.slicer.org/t/extensions-will-be-late-today-update-on-build-system/8404)). Extensions will be available later than usual for today’s preview, and preview builds from the last week or so may be missing extensions. You can use the installer linked here: [SlicerIGT Extenstion](https://discourse.slicer.org/t/slicerigt-extenstion/8369/2) which has the full extension set.
