questions
questions > error converting PAR/REC to nii - fewer slices found than expected
Jan 12, 2019 12:01 AM | Ben Conrad
error converting PAR/REC to nii - fewer slices found than expected
Hello,
I am attempting to convert some PAR/REC images to nifti. I had been doing this (1+ years ago) with dicm2nii.m matlab package on the same files (mostly successfully except there was a flipped dimension). But after upgrading to most recent version of the matlab package, these files will not convert. I am now trying to do this with dcm2niix, which provides a bit more explicit error message. Here is the error I receive:
And just for reference, here is error message in matlab from dicm2nii.m, running on same data:
Any help would be greatly appreciated, thank you!
-Ben
I am attempting to convert some PAR/REC images to nifti. I had been doing this (1+ years ago) with dicm2nii.m matlab package on the same files (mostly successfully except there was a flipped dimension). But after upgrading to most recent version of the matlab package, these files will not convert. I am now trying to do this with dcm2niix, which provides a bit more explicit error message. Here is the error I receive:
conrabn1@conrabn1-VirtualBox:~$ ./dcm2niix
/mnt/CR7T_Connectivity/MRI_raw/CR_035_314914/Price_314914_WIP_MP2RAGE_1x1x1_SENSE_5_1.PAR
Chris Rorden's dcm2niiX version v1.0.20181125 (JP2:OpenJPEG) (JP-LS:CharLS) GCC5.5.0 (64-bit Linux)
Warning: dcm2niix PAR is not actively supported (hint: use dicm2nii)
Error: Unknown type 4: not magnitude[0], real[1], imaginary[2] or phase[3].
Error: Catastrophic error: found 480 but expected 720 slices. /mnt/CR7T_Connectivity/MRI_raw/CR_035_314914/Price_314914_WIP_MP2RAGE_1x1x1_SENSE_5_1.PAR
slices*grad*bval*cardiac*echo*dynamic*mix*labels = 240*1*1*1*1*1*1*1
Warning: Intensity slope/intercept varies between slices! [check resulting images]
Done reading PAR header version 4.2, with 720 slices
Chris Rorden's dcm2niiX version v1.0.20181125 (JP2:OpenJPEG) (JP-LS:CharLS) GCC5.5.0 (64-bit Linux)
Warning: dcm2niix PAR is not actively supported (hint: use dicm2nii)
Error: Unknown type 4: not magnitude[0], real[1], imaginary[2] or phase[3].
Error: Catastrophic error: found 480 but expected 720 slices. /mnt/CR7T_Connectivity/MRI_raw/CR_035_314914/Price_314914_WIP_MP2RAGE_1x1x1_SENSE_5_1.PAR
slices*grad*bval*cardiac*echo*dynamic*mix*labels = 240*1*1*1*1*1*1*1
Warning: Intensity slope/intercept varies between slices! [check resulting images]
Done reading PAR header version 4.2, with 720 slices
And just for reference, here is error message in matlab from dicm2nii.m, running on same data:
Validating 1 files ...
Inconsistent image size, bits etc:
/mnt/CR7T_Connectivity/MRI_raw/CR_035_314914/Price_314914_WIP_MP2RAGE_1x1x1_SENSE_5_1.PAR.
No valid files found:
Inconsistent image size, bits etc:
/mnt/CR7T_Connectivity/MRI_raw/CR_035_314914/Price_314914_WIP_MP2RAGE_1x1x1_SENSE_5_1.PAR
.
Any help would be greatly appreciated, thank you!
-Ben
Threaded View
| Title | Author | Date |
|---|---|---|
| Ben Conrad | Jan 12, 2019 | |
| Josh Robinson | Mar 8, 2019 | |
| Chris Rorden | Jan 12, 2019 | |
| Chris Rorden | Jan 12, 2019 | |
| Ben Conrad | Jan 12, 2019 | |
