Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dicomclean/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (18 sloc)
1.14 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dicomclean | |
removes and replaces unwanted header values from DICOM images such as OperatorsName or PerformingPhysiciansName | |
# dependencies | |
for DICOM header manipulation the dicom toolkit ist used. More precisely `dcmodify`. | |
# plan | |
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 | |
# future | |
- 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 the `file` command. | |
- use concurrent processes to speedup on small dicom files |