pyushkevich / c3d

Convert3D tool
GNU General Public License v3.0
33 stars 16 forks source link

Augmented -info-full command's output for nifti meta data field 'datatype' with easy to read nifti_datatype_to_string function's output #34

Closed br-cpvc closed 7 months ago

br-cpvc commented 8 months ago

Currently the c3d -info-full for nifti files only outputs an integer value for the meta data field 'datatype'. The proposed change uses the data and functions in https://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1_io.c to augment the integer output with a string representation of the datatype making it much easier for the user to read the information.

Example of output before the change:

  Image Metadata:
    ...
    datatype = 512
    ...

Example of output after the change:

  Image Metadata:
    ...
    datatype = 512 (NIFTI_TYPE_UINT16)
    ...