Script Hounsfield Unit

Jun 25, 2015 at 12:45 PM

I'm a new user of the scripting application and i want to develop a new script for a study.

I need to recover the Hounsfield Unit of a volume to do comparison between two CT.

If someone has the code to retrive HU, I can implement it in a script based on DvhLookups.

Thanks for your help

ICM Montpellier, France
Jun 25, 2015 at 1:59 PM
I'm not familiar doing this, but perhaps I can point you in the right direction.

The Structure class has a method called GetAssignedHU, which gives you the "HU value of the material," according to the documentation.

If you want to get the HU for individual voxels, you can make use of the Image class. The Image class has a method called VoxelToDisplayValue that, according to the documentation, converts a raw voxel value to the display unit (e.g., HU, Bq/ml). The DisplayUnit property in Image will tell you what the user's display unit is.

I hope this helps.
Jun 26, 2015 at 9:01 AM
Thank you for your answer

It will be help me

but i precise my request :

in the smart adapt module there is a tool : histogramm; that create a histogramm of the HU number but in a plan and i would like to do the same thing in a volume of my choice.

Can you give me the code or more information about this tool to adapt?