Filters dicom based on slice thickness and series ID and save useful information in a new csv file. This code has been developed for ImmersiveTouch Inc. which is a VR based startup specialized in healthcare based VR software and has been integrated in their pipeline.
Follow the simple steps:
- Put all the .py files in a folder.
- Create two folders. 'junk' and 'Repo'.
- Change the source code for required slice thickness.
- Run Main.py file only.
- Input name of the dicom files that needed to be filtered when asked.
The code is able to do the following steps:
- Rename the Dicom files.
- List all the important Dicom tags into a csv file.
- Separate the usable Dicom into another folder based on SeriesID (considering Slice thickness <=2 and pixel spacing <= 1).
- Each Series ID is assigned to each folder within the institute folder and the folders are named as A,B,C,D and so on.
- Finally listing all the filtered data into another CSV file.