mis-tools / pkg-c3d

0 stars 0 forks source link

improve c3d -info-full output of datatype #1

Open br-cpvc opened 6 months ago

br-cpvc commented 6 months ago

currently it only outputs an integer value, it should also translate this using the enum in https://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1_io.c

br-cpvc commented 6 months ago

created pull request https://github.com/pyushkevich/c3d/pull/34

br-cpvc commented 6 months ago

This change could also be upstreamed to itk, for itk 4.7.2 something like the following line could be added:

diff Modules/IO/NIFTI/src/itkNiftiImageIO.cxx.old Modules/IO/NIFTI/src/itkNiftiImageIO.cxx
803a804
>     datatype << " (" << nifti_datatype_to_string(header->datatype) << ")";