xiangruili / dicm2nii

DICOM to NIfTI conversion, NIfTI tools
BSD 2-Clause "Simplified" License
90 stars 44 forks source link

Problem with compressed Philips PET data #69

Open mabelzunce opened 1 month ago

mabelzunce commented 1 month ago

Hi, I'm having problem to convert data exported from a Philips Vereos PET scanner. When the data is exported in a CD, it works perfectly. However, when the data is exported into a hard drive it doesn't.

The data has the same tree structure, but dicom files are half the size so I guess that they are compressed. When I debugged the code trying to find the problem, I found out that the problem was in the dicm_hdr.m file, where the tag for the start of the pixel data is not found ([224 127 16 0]).

I can convert this Dicom into Niftii with dcm2niix though.

I can share a file if needed.

Thank you.

xiangruili commented 1 month ago

Sounds like the system exports different dicom for CD and hard drive. A small dicom file with the problem will be helpful for diagnose.

mabelzunce commented 1 month ago

Hi, Find here two examples files, one each for the CD and HD exports. https://mega.nz/folder/zNcCzZoa#8mUmvsJc0agQBzgkgmnzPQ

Thanks.

xiangruili commented 1 month ago

@mabelzunce Thanks for the files. Indeed the HD version is compressed dicom. dicm_img.m is unable to deal with this kind of compression yet. Also Philips is using private transfer syntax and private data tag, which probably won't last long.

My suggestion is to try to find the option in the system to avoid exporting compressed dicom. The good news is that dcm2niix can deal with compression.

mabelzunce commented 1 month ago

Thank you for your help!