-
Notifications
You must be signed in to change notification settings - Fork 30
Parameters
Brian Mark Anderson edited this page Jan 12, 2021
·
3 revisions
Below is a list of the parameters, along with a brief description, which can be input into the DicomReaderWriter
-
description: string, Default (‘’), anonymizes new .nii arrays as Overall_Data_{description}_{iteration}.nii.gz in write_parallel()
-
Contour_Names: Default (None) provides a list of contour names, such as [‘Liver’], for the ROIs you would like to read from RT structures present within the images. * Note if using arg_max: order is important in overlapping structures. Use ['Disease', 'Liver'], not ['Liver', 'Disease'] as the second will overwrite disease in the liver
-
associations: Default (Empty Dictionary) allows for the creation of a dictionary to account for variations in ROI names ({variant_name: true_name}). For example, {‘Liver_BMA’: ‘Liver’} means that an ROI called ‘Liver_BMA’ should be treated as if it is called ‘Liver’.
-
arg_max: Default (True) takes the arg_max of the mask created from the ROI contours. Note: Using this argument can cause problems if structures overlap. If contour names is [‘Liver’, ‘Disease’], arg_max results in ‘Liver’ overriding ‘Disease’ in the liver. In this case, writing [‘Disease’, ‘Liver’] is better, as this will make ‘Liver’ be equal to 2 and ‘Disease’ equal to 1
-
verbose: Default (True), boolean for printing certain statements throughout the loading process, can be useful to keep track of everything going on
-
create_new_RT: Default (True) saves memory by creating a new RT with only predicted structures; when set to False, predictions will be added to the existing RT structure (see delete_previous_rois)
-
template_dir: Default (None) allows the user to specify an RT template other than the one provided; If None, defaults to one provided
-
delete_previous_rois: Default (True) saves memory by deleting the previous ROIs when writing a new RT structure; *Only valid if create_new_RT is False
-
require_all_contours: Default (True), require all contours present when making nifti files?
-
iteration: Default (0) sets the iteration number as part of the anonymization process, see description above
-
get_dose_output: Default (False) is a Boolean that collects dose information from dose structures; and
-
flip_axes: Default (False, False, False), a Tuple of size 3, allows the user to flip axes manually if data have been corrupted in the creation of the DICOM files.
-
series_instances_dictionary: A dictionary which houses series instance UIDs and paths for image and mask creation
-
index: An index to reference the series_instance_dictionary, use set_index() to change
Dicom_reader.walk_through_folders(Dicom_Path) This instructs the model to walk through all files, nested folders, and subfolders at a particular
location. This step is what builds the series_instances_dictionary and should be your first step
A special thanks to Kareem Wahid for all his help!