Open neurolabusc opened 1 year ago
@neurolabusc thanks a lot for opening this issue and informing us. I will submit this as a bug to brainvoyager.
Just to double check if I understand correctly, here you are talking about a file (probably a .fmr
) that is exported from BrainVoyager as nifti (using the GUI export nifti option), right?
Tagging @ju-ec and @nausikaa8 , because this might be something to consider while updating the docs and example data.
Thanks @ofgulban, we have updated the tests.
The NIfTI specification defines cal_min and cal_max as follows:
It is standard convention to set both to zero if they are to be ignored. Unfortunately, BrainVoyager seems to set these to 0 and 255 respectively when creating NIfTI data.
The BIDS format BrainVoyager Getting Started Guide (GSG) files exhibit this, e.g. GSGData.zip. Consider the fMRI image that has a mean intensity of 4022 (with a range of 0..49183). Here the cal_min and cal_max of 0..255 is inappropriate, with even dark air voxels having values ~700.
It would be great if BrainVoyager could fix this, but bvlabel could also provide a mechanism for detecting and fixing existing bogus values.