-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
28 lines (20 loc) · 872 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from pathlib import Path
from dcm_deidentifers.deidentifer import Anonymizer
# DEID_DATASET_ROOT = '/home/r079a/Desktop/de-identification/dataset'
# if __name__ == "__main__":
# anonymizer = Anonymizer(
# input_path=Path(DEID_DATASET_ROOT, 'images/manifest-1617826555824/Pseudo-PHI-DICOM-Data'),
# output_path=Path(DEID_DATASET_ROOT, 'anonymizer-output/Pseudo-PHI-DICOM-Data-10-removed-ctp-custom'),
# detector_logging=True,
# )
# anonymizer.run()
DEID_DATASET_ROOT = '/home/r079a/Desktop/de-identification/dataset/midi-test-data'
# 1221642
if __name__ == "__main__":
anonymizer = Anonymizer(
input_path=Path(DEID_DATASET_ROOT, 'input_data'),
output_path=Path(DEID_DATASET_ROOT, 'output_data_sample'),
)
# anonymizer.run()
dcm_path = anonymizer.get_dcm_path_from_idx(9687)
print(dcm_path)