removes and replaces unwanted header values from DICOM images such as OperatorsName or PerformingPhysiciansName
for DICOM header manipulation the dicom toolkit ist used. More precisely dcmodify
.
Grep-Mode:
- crawl a directory with dicom images extract all header information maching a pattern and display
- even archives (zip, tar, tgz, tbz,... ) should be grepped
- even subdirectories should be grepped
- duplicate matches should be aggregated in report
- on demand all affected files should be additionally appear in the report
- some progress indicator would be nice
- after processing (and temporarily extraction) the directory and all its containing files should be identically as before
Replace-Mode:
- basically same behaviour as in the Grep-Mode, but patterns should be replaced with a given value
- sometimes the matching information resides not only in DICOM files, but also in DICOMDIR files as well as in text files such as foobar.txt. Maybe we can use
sed
for text files. We can check if a file is a text file by thefile
command. - use concurrent processes to speedup on small dicom files