Hi, I’m opening a DICOM series from a folder on disk, using the following piece of code:
from DICOMLib import DICOMUtils
with DICOMUtils.TemporaryDICOMDatabase() as db:
DICOMUtils.importDicom(image_dicom_folder, db)
patientUIDs = db.patients()
for patientUID in patientUIDs:
loadedNodeIDs.extend(DICOMUtils.loadPatientByUID(patientUID))
but it sometimes shows the image not as it is expected.
I attach two pictures of it:
How many series are stored in the folder?
How many series show up in the Data module?
Which Slicer version are you using?
Does loading work as expected if you use the DICOM module user interface?
one series was in the folder, that was working well on 4.11.20210226 but when I updated to 4.13, this showed this behavior. I downgraded to 4.11 and that works correctly.
loading was working correctly when used DICOM module user interface.
in which a kind of just one slice of image is showing in one view and nothing in the two other views. the range slicer selectors are freezed and not changeable.
It seems that each slice in the series contains a different instance number. This indicates that this is a time sequence. If it is not a time sequence then most likely the image got corrupted by incorrect anonymization. You may still be able to load it as a single volume if you enable “Advanced” option in DICOM module and choose an item that is not a sequence.