cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
590 stars 299 forks source link

[Feature Request] add support for uint8 nifti files to cornerstoneNiftiVolumeLoader #791

Open mapseamoff opened 1 year ago

mapseamoff commented 1 year ago

What feature or change would you like to see made?

Hello!

Currently cornerstoneNiftiVolumeLoader cannot load nifti files with datatypeCode = 2 (uint8): it throws the following error: 8 Bit signed images are not yet supported by this plugin. I don't know if it is a bug (since data are actually unsigned) or a feature.

Why should we prioritize this feature?

Such format is quite common in nifti files so it would be great to be able to render such files using Cornerstone

sedghi commented 1 year ago

do you have the data to share? we can look

mapseamoff commented 1 year ago

for example https://raw.githubusercontent.com/alfnie/conn/master/utils/surf/referenceT1.nii

yanqzsu commented 7 months ago

for example https://raw.githubusercontent.com/alfnie/conn/master/utils/surf/referenceT1.nii

The slope and inter of this file is float.