-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues reading and saving NIfTI images #11
Comments
Running the demo program and immediately saving the image creates an invalid file that takes 57672028 bytes on disk. One expects the file size to be at least 57672032 bytes (dim1 * dim2 * dim3 * nbyper)+352. It appears that the vox_offset is being set to zero (instead of 352) and the 348 byte header is not being padded with 4 extra bytes to align on quad-word boundaries. You can see this in Matlab (using SPM) or the command line (using FSL): Matlab (SPM):
Command Line (FSL):
This violates the NIfTI specification: |
Thank you for trying our product (under active development stage now). You are absolutely correct - some Nifti files are not supported for read. We have downloaded your test files and have created internal task to read this data. Now our project is under deep changes: we are moving under ReactJS, and most functionality will be completely rewritten. In new version we will support (i hope) reading your files. New version of our med data web viewer will be ready in a month or two. If you need some urgent project modification, please contact me directly via email, mentioned in my personal github profile.
|
after opening dicom and saving it to nifty and then opening the black image. How to fix it? |
@neurolabusc thank you for opening this issue. We have create a bug for Nifti. |
@DanilRostov is the live demo version 2, or do I need to build a copy? I still have issues with the live demo linked from the project home page:
The NIfTI image is from this repository and has CORS permission for sharing as seen in this NiiVue live demo. |
@neurolabusc Thank you for sharing this details. This is another bug we're working on. Currently opening via external link broken. We will post an update here as soon as it fixed. |
I tried med3web. When I attempt to load NIfTI images (File/OpenFromComputer) that work fine with MRIcroGL, FSLeyes, SPM, etc, I get the error "Wrong header data type". Examples are the reference images in the "Ref" folder of dcm_qa.
When I choose File/SaveAsNifti a NIfTI file is stored, but when I attempt to view it with popular tools (MRIcroGL, FSLeyes, SPM, etc), the slices are wrapped in the left-right direction (perhaps the file writing ignored the 352 byte header offset).
The text was updated successfully, but these errors were encountered: