Anonymize(string,string,string,bool,List<AnonymizationKey>,ImageSettings) Method

Summary
Anonymizes the specified directory searching for files with the specified pattern.
Syntax
C#
C++
public virtual void Anonymize( 
   string searchDirectory, 
   string pattern, 
   string outputDir, 
   bool allDirectories, 
   List<AnonymizationKey> anonymizationKeys, 
   ImageSettings settings 
) 
vb[VB Syntax] 
Public Overloads Overridable Sub Anonymize( _ 
   ByVal _searchDirectory_ As String, _ 
   ByVal _pattern_ As String, _ 
   ByVal _outputDir_ As String, _ 
   ByVal _allDirectories_ As Boolean, _ 
   ByVal _anonymizationKeys_ As List(Of AnonymizationKey), _ 
   ByVal _settings_ As ImageSettings _ 
) 
public: 
virtual void Anonymize(  
   String^ searchDirectory, 
   String^ pattern, 
   String^ outputDir, 
   bool allDirectories, 
   List<AnonymizationKey^>^ anonymizationKeys, 
   ImageSettings^ settings 
)  

Parameters

searchDirectory
The search directory to look for DICOM files.

pattern
The pattern to search for.

outputDir
The output directory for the anonymized files.

allDirectories
true to search all directories; otherwise, search only the top level directory.

anonymizationKeys
The anonymization keys used to find unique keys to maintain across files.

settings
The image settings to apply when changing the image in the anonymized dataset.

Remarks

This method will return patient id, study instance uid, and series instance uid for matching files in the searched directories. The  settings are only valid if you apply BlackoutRects to the anonymized images. Doing this will require that the image be re-inserted into the anonymized dataset.

Requirements

Target Platforms

Help Version 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.