Lossy image conversion with FSL inputs

System: Ubuntu 18.04 LTS
Slicer: 4.10.2

Hi everyone,

I previously used the dMRI pipeline to conduct all my diffusion and tractography analyses and everything worked fine. However, I believe I need to use FSL to do some corrections, which outputs to .nii files.

The .nii’s (with 76 volumes) can be opened in Slicer with no issues, but it seems to only recognize the first volume. If I use DWIConvert FSLtoNRRD (with output, and NiftiFSL to NRRD parameters filled and all other areas with the defaults), I get the following error:

Diffusion-weighted DICOM Import (DWIConvert) standard error:

Error: ReadVolume: Unsupported source pixel type.
Input volume: float
Output volume: short
The only supported output type is . You may consider using allowLossyConversion option.
However, use this option with caution! Conversion from images of a different type may cause data loss due to rounding or truncation.
terminate called without an active exception

If I check off “Allow lossy image conversion” it works fine. I’m just wondering what exactly it’s doing to the images - and if there’s any suggestions on how I could perhaps compare the FSL NIFTIs with Slicer’s NRRDs to ensure they’re the same? I’m worried that this may affect the tractography results we get later down the line.

Thanks for your input!

It’s a data casting issue so if you investigate the types you will be able to tell what data might get lost.

dcm2niix now support nifti/nrrd conversion for dwi data. You could compare the results.

https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage

Hi Steve,

Thanks for your response. I’ll look into data casting.

Regarding dcm2niix, I don’t think it supports NIFTI-to-NRRD conversion does it? I’m looking to compare the outputs from FSL with the NRRD from dwiconvert, so it’s not the same as using the nifti converted from the raw DICOM data.

Yes, I understand dcm2niix does nifti-nrrd conversion for dwi. I haven’t used it myself.