# How Can I get the HounsFiledUnit from Segmentation?

**URL:** <https://discourse.slicer.org/t/how-can-i-get-the-hounsfiledunit-from-segmentation/21267>\
**Category:** Support\
**Tags:** segmentation, python\
**Created:** [December 30, 2021, 3:24am UTC](https://discourse.slicer.org/t/how-can-i-get-the-hounsfiledunit-from-segmentation/21267 "2021-12-30T03:24:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kookoo9999](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kookoo9999/32/12394_2.png) [@kookoo9999](https://discourse.slicer.org/u/kookoo9999)\
**Post date:** [December 30, 2021, 3:24am UTC](https://discourse.slicer.org/t/how-can-i-get-the-hounsfiledunit-from-segmentation/21267/1 "2021-12-30T03:24:15Z")

</div>

Hello all.  
I write the code made on python.  
I upload my source at [here](https://github.com/kookoo9999/HounsFieldUnit).  
I want to get HU values (X,Y,Z,HU) and save these at csv file. but I occured error like photo.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/b/9bfed50416e87e25d86ede45ec121e618c8ad58e.png)
