-
Notifications
You must be signed in to change notification settings - Fork 23
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
Replace inputDICOMList with inputDICOMDirectory for SEG converter #155
Comments
question from @chribaue
|
As far as I know, Slicer organizes everything on the filesystem in studies/series. So assuming that all images belong to the same series, they should be in the same directory and no temporary copy would be needed. I will look into this and get back to you. |
Answering my own question: When importing Dicom files into Slicer, you have the option to only add links to these files to the Slicer Dicom database instead of copying them. And we cannot make any assumptions on how the Dicom files were organized before importing them to Slicer. |
@chribaue you are right - DICOM has no standard requirement for directories only containing a single series. In fact, the standard for external storage (e.g. dvd) is explicit that you cannot rely on that organization and need to either look at the files or use the DICOMDIR. Slicer doesn't use the DICOMDIR because it's often not available when you get the files from a scanner or other source directly. You can use the slicer dicom database to find which files are in which places. Or outside of slicer there are many utilities to sort - here's one: https://github.com/pieper/dicomsort |
Yes, we cannot rely on one directory per series. What we can do is add an option in dcmqi to pass the list of DICOM files in the metadata JSON. Let's think about this option. |
Any new thoughts on this? I could work around this issue by copying all dicom files to a temporary directory, if it's too troublesome to change the interface of dcmqi. |
Besides making that work with dcmqi, I could add a drop field to the meta generator so that users can just drop the files there and those absolute paths will be added to the json output. @fedorov what do you think? |
Exceedingly long command line can cause problems on Windows
https://github.com/QIICR/QuantitativeReporting/blob/master/Py/QuantitativeReporting.py#L482
The text was updated successfully, but these errors were encountered: