Dicom image shows just one line of voxels in two views

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:


Thanks for your advise in advance

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.

Does it work well with the very latest Slicer Preview Release?

Is the MRI loaded as a time sequence? (you can see that by going to MultiVolume explorer module or Sequence browser module)

When opened with DICOM module user interface, it shows like this:


but when opened in code above, the same folder shows as the following:

the “sequence” is showing like one line of voxels.

1 Like

Does it work well with the very latest Slicer Preview Release?

1 Like

perfect, yes. It works with today’s build of preview release.
Thanks Andras

Best,
Saeed

1 Like

one other kind of issue with loading DICOMs is like this image:


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.