-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ecat7 pet scans aborted conversion #95
Comments
Hi cbedetti, did dcm2niix from this commit 3f2d477 work for you? |
The |
dcm2niix does not support ECAT7. The master development branch has some code which attempts to read the ECAT header, as part of an experimental attempt to read ECAT7. For the moment, you can use either the legacy dcm2nii or SPM12 to convert ECAT to NIfTI. However, be aware that neither of those tools convert the spatial transform (SForm). This means that spatial orientation may be wrong and different scans from the same session may not be aligned with each other. ECAT is a proprietary format, and it is unclear to me if we can fully support conversion to the NIfTI standard. Can your system also export to DICOM? If so, I would suggest following that route. |
With the last version (dfce355), I have this message now I tried 3f2d477 and still have I know DICOM would be better but in this case it's not possible. To be more precise, If you plan to go futher with ECAT images, I would be happy to give feedbacks with the data I have. |
You can try the latest build, but this is a feature I have just started working on. As I mentioned previously, for at least the near term I would recommend using SPM12 or dcm2nii. After further exploration, it seems like ECAT files do not fill in their "matrix" parameters, so it is impossible to accurately gauge the spatial orientation. I do not have access to an ECAT machine, but I would suggest that you work with your vendor to have them support a well documented format (NIfTI or DICOM) directly. The ECAT format as generated is simply underspecified to create a good NIfTI image. In terms of your manually cropping and transforming from 3D to 4D, you may want to look at my Matlab scripts that use SPM12 to crop images - it might take a bit of tweaking for your data, but this should allow you to integrate all the steps. |
I have added experimental support for ECAT to dcm2niix v1.0.20170428, perhaps @chrisfilo and @cbedetti can try this out. I do have a few comments: |
Thank you for all the feed back and implementation you've done. Just a minor bug. When I give several directories to dcm2niix, if one of the directory has only ECAT file, I get an error. The ECAT file is converted but dcm2niix won't look into the other directories even if there is DICOMs.
It's really easy to get around with iteration though. |
I can not replicate your error. Are you sure there are DICOM files in the other folders and that the expansion for the ${sub} value is correct - in other words does it find the DICOM files if you explicitly provide a root folder that contains both DICOM and ECAT files. Below is my attempt to replicate your issue, where the root folder ~\tst_t1 contains both ECAT images (in ~\tst_t1\ECAT) as well as DICOM images (in ~\tst_t1\T1_simple_rorden)
|
I was in a case where my script gave several input directories to dcm2niix with : Sorry about that, it was a PEBKAC bug ... |
I'm converting ecat7 pet scans files.
dcm2nii
convert my files without error.Here is the output with
dcm2niix
build from this version:Not sure what's wrong here
The text was updated successfully, but these errors were encountered: