jilei-hao / itksnap

ITK-SNAP medical image segmentation tool
https://sourceforge.net/p/itk-snap/src/ci/master/tree/
GNU General Public License v3.0
0 stars 0 forks source link

snap reads unsigned int nifti as float32, and intensity value off by 0.5 #196

Open jilei-hao opened 3 months ago

jilei-hao commented 3 months ago

Version: 4.2.0

image

c3d tmpSegmentation_fixed_seed_1.nii.gz -probe 64x64x64vox
Interpolated image value at 31.5 -4.5 49.5 is 3

Image has data type code 768 and bitpix 32, should be read as unsigned int but was read as float32.

tmpSegmentation_fixed_seed_1.nii.gz