# DWI ADC calculation

**URL:** <https://discourse.slicer.org/t/dwi-adc-calculation/17641>\
**Category:** Support\
**Tags:** segmentation, diffusion, dicom\
**Created:** [May 16, 2021, 5:06pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641 "2021-05-16T17:06:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![RO786](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@RO786](https://discourse.slicer.org/u/RO786)\
**Post date:** [May 16, 2021, 5:06pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/1 "2021-05-16T17:06:20Z")

</div>

Operating system:Windows 10  
Slicer version: 4.11.2020

Hello everyone,  
I’m quite new to the 3D slicer platform so very much appreciate any advice. This is not my field of expertise.  
I want to measure the ADC of the extraocular muscles. I have DICOM T1/T2W images, along with the corresponding DWI traces and ADC maps from the scanner.  
I wanted to know if it’s possible to segment a volume in the T1/T2 images and transpose this onto the ADC map I have, in order to calculate the mean ADC of that volume?

I have downloaded the DWI extension but am unsure about how to start the process.  
I would be very grateful for some guidance!

Many thanks

---

<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:** [May 16, 2021, 11:38pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/2 "2021-05-16T23:38:05Z")

</div>

Yes, this should be no problem at all. You can segment the T1/T2W images using Segment Editor module then get mean ADC in the segmented regions using Segment Statistics module.

---

<div class="post-metadata">

**Author:** ![RO786](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@RO786](https://discourse.slicer.org/u/RO786)\
**Post date:** [May 17, 2021, 11:28am UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/3 "2021-05-17T11:28:15Z")

</div>

Thank you very much.  
I have segmented in T1 image and used the segment statistics module to get the quantitative measurements. However, I only get volume. How would I go about overlaying the segmentation on the ADC trace so I could re-edit it if needed and then calculate the mean ADC?

Thank you very much for your time

---

<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:** [May 17, 2021, 12:58pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/4 "2021-05-17T12:58:12Z")

</div>

To get statistics about voxel values, select the ADC volume as reference volume in Segment Statistics module.

---

<div class="post-metadata">

**Author:** ![RO786](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@RO786](https://discourse.slicer.org/u/RO786)\
**Post date:** [May 17, 2021, 6:13pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/5 "2021-05-17T18:13:56Z")

</div>

Thank you. I’m still having a little difficulty -

1. I save the ROIs I have segmented from the T1 images (thresh hold label maps) and re-open these as ‘segmentations’ using the ‘add data function’ ‘description’ drop down.

2. Create a master volume (ADC trace) in segment editor and from here go to the segmentations module where I can see the overlay of the ROI on the ADC trace.

3. In the segment statistics module I set the scalar volume to the ADC trace, however, only volume is calculated. No ADC.

I feel as though I’m missing a step somewhere but can’t quite work out what it is from the documents

Thank you so much for your time

---

<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 17, 2021, 6:59pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/6 "2021-05-17T18:59:46Z")

</div>

Be sure that the Scalar Volume Statistics options are enabled:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/5/85b5fcbb82663487f1b83fe660481b0f0fbff803.jpeg)

---

<div class="post-metadata">

**Author:** ![RO786](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@RO786](https://discourse.slicer.org/u/RO786)\
**Post date:** [May 17, 2021, 7:18pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/7 "2021-05-17T19:18:44Z")

</div>

Yes, all scalar volume statistics are enabled but no ADC output. Thank you

---

<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:** [May 17, 2021, 8:03pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/8 "2021-05-17T20:03:41Z")

</div>

I’ve just tested it with the latest Slicer Stable Release and it works well. Make sure you scroll right to see all the columns of the table.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/6/66917f8780180d15da9c89becb087a653ff16d22.png)

---

<div class="post-metadata">

**Author:** ![RO786](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@RO786](https://discourse.slicer.org/u/RO786)\
**Post date:** [May 17, 2021, 8:24pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/9 "2021-05-17T20:24:56Z")

</div>

![Screenshot 2021-05-17 21.18.17](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/e/4e7d0470c2ba63434cece29278d42f8543eefea0.png)

So very much appreciated.  
This is my screenshot. ADC map and ROI. Below are my statistics. I assumed that because it says ‘volume’ that the ‘mean calculation’ was pertaining to ‘mean volume’ rather than mean ADC. Is this incorrect?

---

<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 17, 2021, 8:32pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/10 "2021-05-17T20:32:37Z")

</div>

Yes, it means the statistics are calculated for the node you have selected as the “Scalar volume” in the module interface at the time the Apply button is pressed (e.g. you could get statistics over the same region for different MR contrasts).

---

<div class="post-metadata">

**Author:** ![RO786](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@RO786](https://discourse.slicer.org/u/RO786)\
**Post date:** [May 17, 2021, 9:22pm UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/11 "2021-05-17T21:22:22Z")

</div>

Oh goodness, I had the ADC all along. Steep learning curve for me.  
Thank you for your attention and help!

---

<div class="post-metadata">

**Author:** ![dszimatore](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dszimatore](https://discourse.slicer.org/u/dszimatore)\
**Post date:** [March 11, 2022, 11:44am UTC](https://discourse.slicer.org/t/dwi-adc-calculation/17641/12 "2022-03-11T11:44:14Z")

</div>

![dwi.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/7/e77a15cbe3fae9ed0b465cebfe1f877f04cb9d00.jpeg)  
So the values “minimum”, “maximum”, “mean”, “median” and “standard deviation” refer all to ADC? But  
**x 10-3 mm2/s OR x 10-6 mm2/s ?**  
Is there an easy way to obtain histogram values for the volume segmented?  
I tried with python scripts but still I make some mistake and I don’t understand how and if python language interact with GUI.

Many thanks"
