FNNDSC / ami

AMI Medical Imaging (AMI) JS ToolKit
https://fnndsc.github.io/ami/#viewers_upload
MIT License
717 stars 213 forks source link

Support displaying float64/double NIFTI images #389

Open roger-schaer opened 5 years ago

roger-schaer commented 5 years ago

Description

When trying to load a NIFTI with type FLOAT64, the error message "Unknown data type: datatypeCode: 64" is shown. This is surprising, as it seems as most of the code of the NIFTI parser (parsers.nifti.js) takes this data format into account (for the pixelType for example).

Additionally, I've seen that other viewers using the same NIFTI-Reader-JS library are able to display this image format correctly (e.g. the Papaya viewer).

Live Demo

https://fnndsc.github.io/ami/#viewers_upload

Steps to Reproduce

  1. Go to the viewer example above
  2. Upload this sample file : http://fast.hevs.ch/temp/double.nii (or any other FLOAT64 NIFTI image)

Expected Results

The image should be loaded correctly, as is the case with UINT8, INT8, INT16, UINT16 and FLOAT32 types.

Actual Results

Only an error message is shown and the file is not loaded correctly.

Browsers Affected

Versions

dhinkris commented 4 years ago

I am facing the same issue for INT16. Any updates on this issue?

axlbonnet commented 4 years ago

Same for me : Unknown data type: datatypeCode : 64

If anyone has a solution or an idea about how to correct this I would be interested !