# Resample DTIVolume error!

**URL:** <https://discourse.slicer.org/t/resample-dtivolume-error/487>\
**Category:** Support\
**Tags:** diffusion\
**Created:** [June 13, 2017, 2:35am UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487 "2017-06-13T02:35:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rewati\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Rewati\_Kulkarni](https://discourse.slicer.org/u/Rewati_Kulkarni)\
**Post date:** [June 13, 2017, 2:35am UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/1 "2017-06-13T02:35:40Z")

</div>

Operating system: Windows 7 professional  
Slicer version: 4.6.2  
Expected behavior: Sample data from tutorial should execute registration  
Actual behavior: I downloaded the sample data set to perform registration of DTI to MRI from the Slicer page: [Projects:RegistrationLibrary:RegLib C03 - NAMIC Wiki](https://na-mic.org/wiki/Projects:RegistrationLibrary:RegLib_C03)

However, I am able to successfully perform only part 1 of this two-step process. The program takes too long to compute resampling of the DTI volume, and then I get an error message as attached with this post. I tried doing the registration on 2 different computers, but the error persisted. How can I resolve this?

 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/9eadba1ebe1d9e60a1ec0a355bfd8e10fe96f395.JPG)

---

<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:** [June 13, 2017, 11:48am UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/2 "2017-06-13T11:48:43Z")

</div>

Could you try after changing this setting: Edit / Application settings / Modules -\> check Prefer Executable CLIs?

Could you please also try with the latest nightly version?

---

<div class="post-metadata">

**Author:** ![Rewati\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Rewati\_Kulkarni](https://discourse.slicer.org/u/Rewati_Kulkarni)\
**Post date:** [June 13, 2017, 2:41pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/3 "2017-06-13T14:41:21Z")

</div>

I tried both suggestions but they didn’t work. When I used the nightly build, the same error showed up again (image below)

 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/810f1ee0910369d238981fc4fc2d003ad677c453.JPG)

---

<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:** [June 13, 2017, 2:54pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/4 "2017-06-13T14:54:08Z")

</div>

Could you save the scene into a .mrb file right before you click Apply (that would cause the crash), upload it somewhere, and copy the link here?

---

<div class="post-metadata">

**Author:** ![Rewati\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Rewati\_Kulkarni](https://discourse.slicer.org/u/Rewati_Kulkarni)\
**Post date:** [June 13, 2017, 3:04pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/5 "2017-06-13T15:04:43Z")

</div>

Sure, or how about I upload the file here directly? Would that work?

---

<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:** [June 13, 2017, 3:07pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/6 "2017-06-13T15:07:57Z")

</div>

File size and type are limited here. Use Dropbox, OneDrive, Google Drive, etc.

---

<div class="post-metadata">

**Author:** ![Rewati\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Rewati\_Kulkarni](https://discourse.slicer.org/u/Rewati_Kulkarni)\
**Post date:** [June 13, 2017, 3:16pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/7 "2017-06-13T15:16:26Z")

</div>

Here is the Google drive link: [https://drive.google.com/file/d/0B9ZRwZrndb2DR0Q5SF9EQ2YxRDA/view?usp=sharing](https://drive.google.com/file/d/0B9ZRwZrndb2DR0Q5SF9EQ2YxRDA/view?usp=sharing)

---

<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:** [June 13, 2017, 4:05pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/8 "2017-06-13T16:05:24Z")

</div>

I was able to reproduce the issue. The problem is that due to some reason this CLI module uses .mat extension for writing transforms, which is not capable of handling composite transforms. I’ll change it to use .h5, as that can handle any combination of transforms. Tomorrow’s nightly version should work well.

---

<div class="post-metadata">

**Author:** ![Rewati\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Rewati\_Kulkarni](https://discourse.slicer.org/u/Rewati_Kulkarni)\
**Post date:** [June 13, 2017, 4:17pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/9 "2017-06-13T16:17:19Z")

</div>

Thank you very much! I’ll wait for the new nightly version, in that case.

And as far as the tutorial steps are concerned, instead of selecting “displacement”, I would then have to pick “h5”, is that right?

---

<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:** [June 13, 2017, 4:22pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/10 "2017-06-13T16:22:23Z")

</div>

You don’t have to do anything differently, it’s just an internal change in file format.

---

<div class="post-metadata">

**Author:** ![Rewati\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Rewati\_Kulkarni](https://discourse.slicer.org/u/Rewati_Kulkarni)\
**Post date:** [June 13, 2017, 4:33pm UTC](https://discourse.slicer.org/t/resample-dtivolume-error/487/11 "2017-06-13T16:33:56Z")

</div>

Alright, thanks!

_Rewati Kulkarni_

_Research Assistant, Injury Biomechanics Lab._

University of Pennsylvania,  
Department of Bioengineering  
_+1 267-648-7960_ | _[rewati.p.k01@gmail.com](mailto:rewati.p.k01@gmail.com) [rewati.p.k01@gmail.com](mailto:rewati.p.k01@gmail.com)_
