Hi, I’m loading DICOM series this way:
from DICOMLib import DICOMUtils
loadedNodeIDs = []
with DICOMUtils.TemporaryDICOMDatabase() as db:
DICOMUtils.importDicom(image_dicom_folder, db)
patientUIDs = db.patients()
for patientUID in patientUIDs:
loadedNodeIDs.extend(DICOMUtils.loadPatientByUID(patientUID))
#print("image loaded:",image_dicom_folder)
slicer.app.applicationLogic().GetInteractionNode().SetCurrentInteractionMode(slicer.vtkMRMLInteractionNode.AdjustWindowLevel)
for a DICOM series to load it takes around 25 seconds on a intel quad core 4.00GHz cpu and 32 GB of Ram.
I was wondering if this is something that I can improve in some way?
Best