A CLI tool to anonymise files using the RSNA MIRC Clinical Trials Processor (CTP) DICOM Anonymizer. Uses the ctp-anon-minimal dependency.
Requires a Java JRE >= 8
. Download a jar from the Releases, then run with
java -jar <jar>
Required arguments:
-a
/--anon-script
: Path to a CTP DICOM anonymizer script file. Samples can be found here-s
/--sr-anon-tool
: Path to the SRAnonTool. Can be set tofalse
if SR anonymisation is being performed elsewhere.
Optional arguments:
-d
/--daemonize
: Run as a daemon and wait for files to process
To anonymise a single file:
$ java -jar <jar> -a <anon-script> -s <sr-anon-tool> <src-file> <anon-file>
To anonymise multiple files:
$ java -jar <jar> -a <anon-script> -s <sr-anon-tool> (<src-file>:<anon-file>)...
To run as a daemon and process many files:
$ java -jar <jar> -a <anon-script> -s <sr-anon-tool> -d
The application will then wait for lines of <src-file> <anon-file>
pairs to
process.
Requirements:
- Java 8 JDK
- Maven