Creates anonymized dicom files using command line and python
Python 3.7
pydicom
dicom-anonymizer (needs to be built, taken from: https://github.com/KitwareMedical/dicom-anonymizer)
-
Create a virtual environment with python 3.7
-
pip install pydicom
-
For installing dicom-anonymizer:
- First cd to the repo directory
- run pip install ./dicom-anonymizer/dist/dicom_anonymizer-1.0.9-py2.py3-none-any.whl
-
Activate the virtual environment in terminal
-
cd to the repo directory
-
run python main.py [input_folder_path] [output_folder_path]
-
The input_folder_path should contain all subfolders that hold all images for each sequence.
-
The output_folder_path can be any folder where all anonymized files corresponding to single patient are stored.
-