pyushkevich / itksnap

ITK-SNAP medical image segmentation tool
http://www.itksnap.org
GNU General Public License v3.0
299 stars 88 forks source link

Help to find correct HU value #94

Closed aVoman7 closed 1 year ago

aVoman7 commented 1 year ago

I have a nifti image that I opened using ITK-snap. When I read the meta data using nifticlib and Nifti-Reader-JS I got to know that the each voxel takes 16-bit. For example, 0x1DAA (7594) corresponds to an HU value of -101 in itk-snap. After using c3d I got to know that it is -101.012. After using 3D Slicer I got to know that it is -101.01152. So how do I calculate from this hexadecimal value to the required HU value?

Thanks for your help in advance!

aVoman7 commented 1 year ago

I came to know about the scl_inter and scl_slope variables later. Sorry for the trouble. https://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/scl_slopeinter.html

This might help someone