# Getting HU values after loading volume

**URL:** <https://discourse.itk.org/t/getting-hu-values-after-loading-volume/4142>\
**Category:** Beginner Questions\
**Tags:** dicom, simpleitk, python\
**Created:** [May 20, 2021, 7:11am UTC](https://discourse.itk.org/t/getting-hu-values-after-loading-volume/4142 "2021-05-20T07:11:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anillspawar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@anillspawar](https://discourse.itk.org/u/anillspawar)\
**Post date:** [May 20, 2021, 7:11am UTC](https://discourse.itk.org/t/getting-hu-values-after-loading-volume/4142/1 "2021-05-20T07:11:52Z")

</div>

Do we need to convert pixel values to HU values after reading CT volumes using simpleITK.  
Code I am using for reading volume:  
_reader = SimpleITK.ImageSeriesReader()_  
_filenamesDICOM = reader.GetGDCMSeriesFileNames(pathDicom)_  
_reader.SetFileNames(filenamesDICOM)_  
_imgOriginal = reader.Execute()_

So will the sitk ImageSeriesReader will take care of this conversion automatically or do I need to do it explicitly as: hu = pixel\_value \* slope + intercept ?

Thankyou

---

<div class="post-metadata">

**Author:** ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)\
**Post date:** [May 20, 2021, 12:35pm UTC](https://discourse.itk.org/t/getting-hu-values-after-loading-volume/4142/2 "2021-05-20T12:35:35Z")

</div>

Hello @anillspawar,

No need to do anything beyond read the image, SimpleITK takes care of everything for you.

For a wide range of examples, please see the toolkit’s [Jupyter notebook repository](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks) and the [short examples](https://simpleitk.readthedocs.io/en/master/link_examples.html) on read-the-docs.

---

<div class="post-metadata">

**Author:** ![anillspawar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@anillspawar](https://discourse.itk.org/u/anillspawar)\
**Post date:** [May 20, 2021, 5:40pm UTC](https://discourse.itk.org/t/getting-hu-values-after-loading-volume/4142/3 "2021-05-20T17:40:49Z")

</div>

Thankyou @zivy for the quick clarification 🙂
