# How to compute 3x3 diffusion tensor at each voxel

**URL:** <https://discourse.slicer.org/t/how-to-compute-3x3-diffusion-tensor-at-each-voxel/6016>\
**Category:** Support\
**Tags:** diffusion\
**Created:** [March 5, 2019, 1:03am UTC](https://discourse.slicer.org/t/how-to-compute-3x3-diffusion-tensor-at-each-voxel/6016 "2019-03-05T01:03:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erkara](https://avatars.discourse-cdn.com/v4/letter/e/3e96dc/32.png) [@erkara](https://discourse.slicer.org/u/erkara)\
**Post date:** [March 5, 2019, 1:03am UTC](https://discourse.slicer.org/t/how-to-compute-3x3-diffusion-tensor-at-each-voxel/6016/1 "2019-03-05T01:03:21Z")

</div>

Operating system: Linux  
Slicer version: 4.11  
Hi guys

I am trying to extract 3x3 diffusion tensor at each voxel of the image. It seems we can see trace, max-min eigenvalues etc but not the tensor itself. I also dont know how to export the this data (say in \*.txt) so that I can use for further analysis. I am so tired of spending hours with Slicer. I will greatly appreciate any kind of help. Thanks.

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [March 5, 2019, 4:04pm UTC](https://discourse.slicer.org/t/how-to-compute-3x3-diffusion-tensor-at-each-voxel/6016/2 "2019-03-05T16:04:25Z")

</div>

Did you see the tutorials at [http://dmri.slicer.org/docs/](http://dmri.slicer.org/docs/), and specifically “Slicer DTI tutorial”?

cc: @ljod

---

<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:** [March 5, 2019, 7:08pm UTC](https://discourse.slicer.org/t/how-to-compute-3x3-diffusion-tensor-at-each-voxel/6016/3 "2019-03-05T19:08:54Z")

</div>

Thanks Andrey.

Also please see information towards the bottom of the page here [http://dmri.slicer.org/docs/](http://dmri.slicer.org/docs/) about how to access tensors from Python, in case that is what you are looking for. It’s not clear from your message what your goal is.

---

<div class="post-metadata">

**Author:** ![erkara](https://avatars.discourse-cdn.com/v4/letter/e/3e96dc/32.png) [@erkara](https://discourse.slicer.org/u/erkara)\
**Post date:** [May 13, 2019, 9:31pm UTC](https://discourse.slicer.org/t/how-to-compute-3x3-diffusion-tensor-at-each-voxel/6016/4 "2019-05-13T21:31:28Z")

</div>

Thanks for all replies! It was really helpfull @fedorov @ljod
