http://mircwiki.rsna.org/index.php?title=The_DicomAnonymizerTool&feed=atom&action=historyThe DicomAnonymizerTool - Revision history2024-03-29T15:49:52ZRevision history for this page on the wikiMediaWiki 1.35.5http://mircwiki.rsna.org/index.php?title=The_DicomAnonymizerTool&diff=8061&oldid=prevJohnperry at 18:07, 14 July 20202020-07-14T18:07:55Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:07, 14 July 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The DicomAnonymizerTool is a command-line program that processes a single file or a tree of directories using pipeline stages like those in CTP. It contains a DicomFilter, a DicomPixeAnonymizer, and a DicomAnonymizer. Each of the stages can be enabled, disabled, or configured through command-line parameters.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The DicomAnonymizerTool is a command-line program that processes a single file or a tree of directories using pipeline stages like those in CTP. It contains a DicomFilter, a DicomPixeAnonymizer, and a DicomAnonymizer. Each of the stages can be enabled, disabled, or configured through command-line parameters.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The installer for the program can be obtained at http://mirc.rsna.org/download/DicomAnonymizerTool.jar.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The installer for the program can be obtained at http://mirc.rsna.org/download/DicomAnonymizerTool<ins class="diffchange diffchange-inline">-installer</ins>.jar.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>To install the program, run the installer and select a directory. The installer will create a subdirectory called DicomAnonymizerTool in the selected directory and place all the necessary files in it.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>To install the program, run the installer and select a directory. The installer will create a subdirectory called DicomAnonymizerTool in the selected directory and place all the necessary files in it.</div></td></tr>
</table>Johnperryhttp://mircwiki.rsna.org/index.php?title=The_DicomAnonymizerTool&diff=8047&oldid=prevJohnperry at 01:37, 2 December 20182018-12-02T01:37:41Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 01:37, 2 December 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l102" >Line 102:</td>
<td colspan="2" class="diff-lineno">Line 102:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>When a config.xml file is found, it is loaded in the same way the CTP config.xml file is loaded, so there will be quite a bit of additional logging in the command window before file processing starts.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>When a config.xml file is found, it is loaded in the same way the CTP config.xml file is loaded, so there will be quite a bit of additional logging in the command window before file processing starts.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>IMPORTANT: For technical reasons, any AnonymizerExtension plugins must be contained in files with the names <del class="diffchange diffchange-inline">extension1</del>.jar, <del class="diffchange diffchange-inline">extension2</del>.jar, and/or <del class="diffchange diffchange-inline">extension3</del>.jar. No other <del class="diffchange diffchange-inline">extension </del>jars are loaded by the program. A single jar file can contain many AnonymizerExtensions.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>IMPORTANT: For technical reasons, any AnonymizerExtension plugins must be contained in files with the names <ins class="diffchange diffchange-inline">extensions1</ins>.jar, <ins class="diffchange diffchange-inline">extensions2</ins>.jar, and/or <ins class="diffchange diffchange-inline">extensions3</ins>.jar. No other <ins class="diffchange diffchange-inline">extensions </ins>jars are loaded by the program. A single <ins class="diffchange diffchange-inline">extensions </ins>jar file can contain many AnonymizerExtensions.</div></td></tr>
</table>Johnperryhttp://mircwiki.rsna.org/index.php?title=The_DicomAnonymizerTool&diff=8046&oldid=prevJohnperry at 01:33, 2 December 20182018-12-02T01:33:39Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 01:33, 2 December 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l83" >Line 83:</td>
<td colspan="2" class="diff-lineno">Line 83:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>R/W WBMP</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>R/W WBMP</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">All the default script files are contained in the same directory as the DAT.jar file. The defaults can be edited with any text editor, but changes will be overwritten during an upgrade. If specialized scripts are required, it is best to create new files for them and specify the script files in the appropriate program parameters.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">In special situations where one or more AnonymizerExtensions are required, a config.xml file must be put in the directory to specify the plugins. An example file might be:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><Configuration></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> <Plugin</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> baseDate="20000101"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> class="edu.emory.anonymizer.AnonymizerDateExtension"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> dateTableFile="D:/Data/Emory/testzip/testzip/TimeOfInjury.csv"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> id="ADEID"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> name="AnonymizerDateExtension"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> root="test/AnonymizerDateExtension"/></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></Configuration></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">When a config.xml file is found, it is loaded in the same way the CTP config.xml file is loaded, so there will be quite a bit of additional logging in the command window before file processing starts.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">IMPORTANT: For technical reasons, any AnonymizerExtension plugins must be contained in files with the names extension1.jar, extension2.jar, and/or extension3.jar. No other extension jars are loaded by the program. A single jar file can contain many AnonymizerExtensions.</ins></div></td></tr>
</table>Johnperryhttp://mircwiki.rsna.org/index.php?title=The_DicomAnonymizerTool&diff=8045&oldid=prevJohnperry: Created page with "The DicomAnonymizerTool is a command-line program that processes a single file or a tree of directories using pipeline stages like those in CTP. It contains a DicomFilter, a D..."2018-12-02T01:13:19Z<p>Created page with "The DicomAnonymizerTool is a command-line program that processes a single file or a tree of directories using pipeline stages like those in CTP. It contains a DicomFilter, a D..."</p>
<p><b>New page</b></p><div>The DicomAnonymizerTool is a command-line program that processes a single file or a tree of directories using pipeline stages like those in CTP. It contains a DicomFilter, a DicomPixeAnonymizer, and a DicomAnonymizer. Each of the stages can be enabled, disabled, or configured through command-line parameters.<br />
<br />
The installer for the program can be obtained at http://mirc.rsna.org/download/DicomAnonymizerTool.jar.<br />
<br />
To install the program, run the installer and select a directory. The installer will create a subdirectory called DicomAnonymizerTool in the selected directory and place all the necessary files in it.<br />
<br />
The program runs on Java 7 or better, including Java 9 and 10.<br />
<br />
To run the program, open a command window in the program's directory and run the program from the command line.<br />
<br />
If the program is run with no command-line parameters, it will list help information and information about the configuration of the platform on which it is running:<br />
<br />
<pre><br />
D:\JavaPrograms\DicomAnonymizerTool>java -jar DAT.jar<br />
Usage: java -jar DAT.jar {parameters}<br />
where:<br />
-in {input} specifies the file or directory to be anonymized<br />
If {input} is a directory, all files in it and its subdirectories are processed.<br />
-out {output} specifies the file or directory in which to store the anonymized file or files.<br />
If -out is missing and -in specifies a file, the anonymized file is named {input}-an.<br />
If -out is missing and -in specifies a directory, an output directory named {input}-an is created.<br />
If {output} is missing and -in specifies a file, the anonymized file overwrites {input}<br />
If {output} is present and -in specifies a file, the anonymized file is named {output}<br />
If {output} is present and -in specifies a directory, an output directory named {output} is created.<br />
-f {scriptfile} specifies the filter script.<br />
If -f is missing, all files are accepted.<br />
If {scriptfile} is missing, the default script is used.<br />
-da {scriptfile} specifies the anonymizer script.<br />
If -da is missing, element anonymization is not performed.<br />
If {scriptfile} is missing, the default script is used.<br />
-p{param} "{value}" specifies a value for the specified parameter.<br />
{value} must be encapsulated in quotes.<br />
-e{element} "{script}" specifies a script for the specified element.<br />
{element} may be specified as a DICOM keyword, e.g. -ePatientName.<br />
{element} may be specified as (group,element), e.g. -e(0010,0010).<br />
{element} may be specified as [group,element], e.g. -e[0010,0010].<br />
{element} may be specified as groupelement, e.g. -e00100010.<br />
{script} must be encapsulated in quotes.<br />
-lut {lookuptablefile} specifies the anonymizer lookup table properties file.<br />
If -lut is missing, the default lookup table is used.<br />
-dpa {pixelscriptfile} specifies the pixel anonymizer script file.<br />
If -dpa is missing, pixel anonymization is not performed.<br />
If {pixelscriptfile} is missing, the default pixel script is used.<br />
-dec specifies that the image is to be decompressed if the pixel anonymizer requires it.<br />
-rec specifies that the image is to be recompressed after pixel anonymization if it was decompressed.<br />
-test specifies that the pixel anonymizer is to blank regions in mid-gray.<br />
-check {frame} specifies that the anonymized image is to be tested to ensure that the images load.<br />
If -check is missing, no frame checking is done.<br />
If {frame} is missing, only the last frame is checked.<br />
If {frame} is specified as first, only the first frame is checked.<br />
If {frame} is specified as last, only the last frame is checked.<br />
If {frame} is specified as all, all frames are checked.<br />
-n {threads} specifies the number of parallel threads used for processing.<br />
-v specifies verbose output<br />
<br />
Configuration:<br />
os.name: Windows 10<br />
java.version: 10.0.1<br />
sun.arch.data.model: 64<br />
java.home: C:\Program Files\Java\jre-10.0.1<br />
clib: D:\JavaPrograms\DicomAnonymizerTool\clibwrapper_jiio-1.2-pre-dr-b04.jar<br />
jai: D:\JavaPrograms\DicomAnonymizerTool\jai_imageio-1.2-pre-dr-b04.jar<br />
jiio: null<br />
jiio sse2: null<br />
jiio util: null<br />
ImageIO Tools version: 1.2-pre-dr-b04<br />
<br />
This Java does not have the ImageIOTools native code extensions installed.<br />
<br />
Available codecs:<br />
R/W BMP<br />
R/W DICOM<br />
R/W GIF<br />
R/W JPEG<br />
R/W JPEG2000<br />
R/W JPG<br />
R/W PCX<br />
R/W PNG<br />
R/W PNM<br />
R/W RAW<br />
R RLE<br />
R/W TIFF<br />
R/W WBMP<br />
</pre></div>Johnperry