You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
The script works
python dicomsort.py /Users/me/unsorted /Users/me/sorted/%SeriesNumber/%InstanceNumber.dcm
but instance numbers are saved 1.dcm,2.dcm,... how does one zero pad the outputs so you get 0001.dcm, 0002.dcm,etc?
The text was updated successfully, but these errors were encountered:
Unfortunately there's not easy way to do that - the filename components are extracted directly from the dicom values and those are not zero padded.
I'd suggest writing a small script (in python or similar language) that does the renaming of the files after they've been sorted. Let me know if you want some hints about how to write it.
Hello
The script works
python dicomsort.py /Users/me/unsorted /Users/me/sorted/%SeriesNumber/%InstanceNumber.dcm
but instance numbers are saved 1.dcm,2.dcm,... how does one zero pad the outputs so you get 0001.dcm, 0002.dcm,etc?
The text was updated successfully, but these errors were encountered: