Kitware / VolView

Kitware VolView: an all-in-one radiological viewer!
https://volview.kitware.com
Apache License 2.0
187 stars 61 forks source link

Unsupported data type error #655

Closed Srujith20 closed 1 month ago

Srujith20 commented 2 months ago

Issue Resolved

floryst commented 1 month ago

I think there's an issue with itk-wasm opening nii.gz files. If you decompress them into .nii files, do they load?

PaulHax commented 1 month ago

Yes, we lost the compressed nii.gz format support somewhere.

After decompressing, itk-wasm returns a BigInt64Array typed array, which looks like we don't handle well. @Srujith20 Try converting the label map file to a Int32 typed array.

Srujith20 commented 1 month ago

Yes, we lost the compressed nii.gz format support somewhere.

After decompressing, itk-wasm returns a BigInt64Array typed array, which looks like we don't handle well. @Srujith20 Try converting the label map file to a Int32 typed array.

I am encountering the following error when I try to visualize an Int32 typed array.

Screenshot 2024-10-01 at 12 10 14 PM
Srujith20 commented 1 month ago

I think there's an issue with itk-wasm opening nii.gz files. If you decompress them into .nii files, do they load?

I am still not able to load the label after decompressing. When I try to visualize the image it opens up sometimes and sometimes it throws the "could not load" error.

PaulHax commented 1 month ago

The loader still thinks its a Int64 image. Check your image conversion code. For more help here: