# DTI\_ALPS x,y,z-projection of mean diffusivity

**URL:** <https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578>\
**Category:** SlicerDMRI\
**Created:** [May 22, 2023, 1:36pm UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578 "2023-05-22T13:36:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSteinJ](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@JSteinJ](https://discourse.slicer.org/u/JSteinJ)\
**Post date:** [May 22, 2023, 1:36pm UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/1 "2023-05-22T13:36:24Z")

</div>

terribly sorry me again,  
I forgot that I need x,y,z projections of MeanDiffusivity to.  
How can I calculate it from the maps in DiffusionTensorScalarMeasurement provided…?  
thank you,  
jürgen

---

<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:** [May 22, 2023, 2:43pm UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/2 "2023-05-22T14:43:13Z")

</div>

You’ll need to figure out the details of the calculations yourself, but you can get the individual tensors in python: [Script repository — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#access-values-in-a-dti-tensor-volume)

---

<div class="post-metadata">

**Author:** ![JSteinJ](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@JSteinJ](https://discourse.slicer.org/u/JSteinJ)\
**Post date:** [May 25, 2023, 5:07am UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/3 "2023-05-25T05:07:27Z")

</div>

thank you for your help…  
is that ok that the script works more than 47h now??  
its a 2040 pics dti on a Intel® Core™ i7-4790 CPU @ 3.60GHz × 8 machine…  
ok I know Slicer uses just 1 core…

---

<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:** [May 25, 2023, 1:35pm UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/4 "2023-05-25T13:35:41Z")

</div>

Processing tensor volumes voxel by voxel in python is likely to be slow, but that does seem like a long time. Usually it’s good to try small experiments to confirm that you are getting the results you expect and then you can use the timing of small examples to estimate how long it should take to process a full volume. It depends on your priorities but writing in C++ is an option to speed things up.

---

<div class="post-metadata">

**Author:** ![JSteinJ](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@JSteinJ](https://discourse.slicer.org/u/JSteinJ)\
**Post date:** [May 31, 2023, 10:21am UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/5 "2023-05-31T10:21:43Z")

</div>

Seems to be a never ending story… ;((  
I mean now I got a result but I can´t evalue it.

I have the tensor in a 4D “.nii.gz” file. in the order of Dxx, Dxy, Dxz, Dyy, Dyz & Dzz  
I can load it into 3D Slicer using the MultiVolumeImporter.  
I would like to place some ROIs and measure the values for Dxx Dyy and Dzz  
How is that possible?

Moving the mouse over the frame in the MultiVolumeExplorer gives koordinates but no values?  
So does Segmentation & Segment Statistics…

Is there a possibility to export the multiframe in single frames?

thanks jürgen

---

<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:** [May 31, 2023, 2:00pm UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/6 "2023-05-31T14:00:09Z")

</div>

See the MultiVolumeExplorer to extract individual scalar volumes that are compatible with the DataProbe and SegmentStatistics.

---

<div class="post-metadata">

**Author:** ![JSteinJ](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@JSteinJ](https://discourse.slicer.org/u/JSteinJ)\
**Post date:** [June 20, 2023, 9:55am UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/7 "2023-06-20T09:55:09Z")

</div>

Me again…  
sorry your tip with the script repository doesn’t work…  
tried on different Slicer versions, and on different data… (just to let you know…)

in older slicer versions (4.0…) there are different kind of maps (Diffusion Tensor Scalar Measurement) available. Is there a way to calculate this maps also in the recent versions (5…)?

And can you tell me whats RAIMaxEigenvecX,Y,Z??? the links to the documentation are no longer up to date, can’t find any explanation…

---

<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:** [June 20, 2023, 1:00pm UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/8 "2023-06-20T13:00:06Z")

</div>

Be sure to read the documentation and study the code: [http://dmri.slicer.org/](http://dmri.slicer.org/)

If you see broken links please report specifically so they can be fixed. If there are scripts that don’t work for you please report the steps you took and what didn’t work.

---

<div class="post-metadata">

**Author:** ![zhangfanmark](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhangfanmark/32/4451_2.png) [@zhangfanmark](https://discourse.slicer.org/u/zhangfanmark)\
**Post date:** [July 6, 2023, 5:43am UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/9 "2023-07-06T05:43:00Z")

</div>

Hi!

“RAIMaxEigenvecX,Y,Z” are likely the eigenvectors computed the diffusion tensors. I don’t think these are provided even in older Slicer versions. Perhaps in the code used as intermediate functions.

Yes, in the new release of Slicer, Diffusion Tensor Scalar Measurement module is available. You would need to install SlicerDMRI to use this module: [Download](http://dmri.slicer.org/download/)

Btw, above you mentioned “x,y,z projections” are needed. I am not sure if you meant to analyze the Dxx, Dyy, Dzz from the diffusion tenor, or lamda 1, 2, 3 corresponding to the eigenvalues. If the later, you can directly obtain them in the Diffusion Tensor Scalar Measurement module.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/a/5abe47d807433a15cc9029e0a12463178582a3d7.png)

Regards,  
Fan

---

<div class="post-metadata">

**Author:** ![JSteinJ](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@JSteinJ](https://discourse.slicer.org/u/JSteinJ)\
**Post date:** [July 7, 2023, 6:43am UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/10 "2023-07-07T06:43:31Z")

</div>

HI Fan,

thank you for this useful message:  
“RAIMaxEigenvecX,Y,Z” whatever it is, is provided in Slicer versions around 4.0 - 4.4… +/-… in “Diffusion Tensor Scalar Measurement module”  
In this versions you also get the x,y,z projection of MaxEigenValue… This feature is useful  
for the ALPS index… but no longer provided in the new versions. In the meantime I have solved my problems, and I am able to calculate DTI -ALPS index using 3D Slicer and some other software…  
I wonder that the “Diffusion Tensor Scalar Measurement module” does not provide calculation of ADC maps from DTI scans… as this is a very basic often used information. but ok…  
So thank you for your help, I have found a solution.

---

<div class="post-metadata">

**Author:** ![djl](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@djl](https://discourse.slicer.org/u/djl)\
**Post date:** [March 4, 2024, 3:02pm UTC](https://discourse.slicer.org/t/dti-alps-x-y-z-projection-of-mean-diffusivity/29578/11 "2024-03-04T15:02:09Z")

</div>

Hi！  
Can you tell me how you solved your problem please. can I calculate ALPS just by 3d slicer.Does “Max Eight Value” in diffusion tensor scalar maps mean Dxx?  
thank you
