spinalcordtoolbox / PAM50

https://github.com/neuropoly/spinalcordtoolbox
2 stars 1 forks source link

`PAM50_cord.nii.gz` unecessarily encoded as FLOAT32 #17

Closed jcohenadad closed 1 year ago

jcohenadad commented 1 year ago

PAM50_cord.nii.gz is the spinal cord segmentation, and it is a binary mask (only 0 and 1), however it is encoded as FLOAT32:

julien-macbook:~/code/PAM50 $ fslhd template/PAM50_cord.nii.gz
filename    template/PAM50_cord.nii.gz

sizeof_hdr  348
data_type   FLOAT32
dim0        3
dim1        141
dim2        141
dim3        991

Given that FLOAT32 takes unecessary space, I suggest encoding this file as UINT8.