Print

Print


Hi

I am using the MNI152-template to resample T1-images to 1x1x1 mm (not registering) using:

flirt -in "${katalog}_XT1_orginal.nii" -ref ../MNI152_T1_1mm.nii.gz -applyxfm -out "${katalog}_XT1.nii"

But I get the error below:

Image Exception : #40 :: ERROR:: Illegal NIfTI file! Inconsistent sform and qform information set in ${katalog}_XT1_orginal.nii
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
./resampling_T1.txt: line 2: 12318 Aborted                 (core dumped) flirt -in "${katalog}_XT1_orginal.nii" -ref ../MNI152_T1_1mm.nii.gz -applyxfm -out "${katalog}_XT1.nii"

Interestingly, I do not get it for the entire batch of patients, some works fine, and they have all been coverted to nifti using the same software. All images looks fine in terms of L-R in fslview.

what error is this and can it be fixed using and commands in fsl?

best

nick