neuroanatomy / BrainBox

BrainBox is a web application that lets you annotate and segment 3D brain imaging data in real time, collaboratively.
https://brainbox.pasteur.fr
Other
96 stars 46 forks source link

header of nifti file generated by BrainBox is missing some little piece of information #160

Closed katjaq closed 6 years ago

katjaq commented 6 years ago

Is this a feature request or a bug report?

bug report

What is the current behaviour?

When a mask is downloaded from BrainBox (either with curl or via the download button), the nifit file can be opened by some programs, like FSL for instance, and by some others not (loading with nibabel fails). For example the "Default" mask that you can download by clicking on the download link in this page http://brainbox.pasteur.fr/mri?url=https://dl.dropbox.com/sh/71jbelduefu41xs/AADysls57HwmJT0pdbbSVI4Na/case_001_2.nii.gz

A pass through FSL's fslchfiletype NIFTI_GZ can fix it. We should look at the header when the file comes from BrainBox and compare it to the one after passing it through FSL and add the missing little thing to the BrainBox code.

What is the expected or desired behaviour?

The nifti file works fine for all of our analyses that we do after passing it through fslchfiletype. This step should not be necessary but BrainBox should generate all necessary header fields.

r03ert0 commented 6 years ago

should be fixed by the commit