Automatic import of DICOM images (Mimics 22.0)

Using the Mimics API, the user can automate the import of DICOM images. As input, we assume there is a directory containing DICOM images (this could be a single study, or multiple studies). By using mimics.file.import_dicom_images() with the default parameters, the DICOM files are imported.

# Tutorial for automatic import of dicom images
input_dir = r"C:\MedData\DemoFiles\DICOM_Airway"
mimics.dialogs.set_predefined_answer("ChangeOrientation", "default")
mimics.file.import_dicom_images(source_folder=input_dir)
mimics.file.anonymize_active_image()