Hello,
I have a series of X-Ray files which Slicer refuses to open. I can open them in other DICOM viewers, and I can do some processing in tools like pydicom
or the dcm*
and gdcm*
CLI suites.
This seems a lot like Seeking Help: "Could not load as a Scalar Volume" Error Opening DICOM X-ray Files (Bone, ML, and AP Views) with 3D Slicer but there is no resolution in that discussion.
The files are loaded successfully into the DICOM database, but fail to load as volumes.
I first get Image spacing may need to be calibrated for accurate size measurements.
warnings, and then Could not load: 2: XA SCOPY [2] as a Image sequence
for all files except the first, and Could not load: 1: XA SCOPY - 16 frames Volume Sequence by AcquisitionTime as a MultiVolume
for the first. The log includes a series of
[Python] Could not read scalar volume using GDCM approach. Error is: FileFormatError
[VTK] vtkITKArchetypeImageSeriesReader::ExecuteInformation: Cannot open /tmp/Pig X ray March 17 2025/run_1.dcm. ITK exception info: error in unknown: Could not create IO object for reading file /tmp/Pig X ray March 17 2025/run_1.dcm
[VTK] Tried to create one of the following:
[VTK] BMPImageIO
[VTK] BioRadImageIO
[VTK] DCMTKImageIO
[VTK] GDCMImageIO
[VTK] GiplImageIO
[VTK] JPEGImageIO
[VTK] LSMImageIO
[VTK] MGHImageIO
[VTK] MINCImageIO
[VTK] MRCImageIO
[VTK] MetaImageIO
[VTK] NiftiImageIO
[VTK] NrrdImageIO
[VTK] PNGImageIO
[VTK] ScancoImageIO
[VTK] StimulateImageIO
[VTK] TIFFImageIO
[VTK] VTKImageIO
[VTK] MRMLIDImageIO
[VTK] Bruker2dseqImageIO
[VTK] GE4ImageIO
[VTK] GE5ImageIO
[VTK] HDF5ImageIO
[VTK] JPEG2000ImageIO
[VTK] You probably failed to set a file suffix, or
[VTK] set the suffix to an unsupported type.
[VTK] Algorithm vtkITKArchetypeImageSeriesScalarReader (0x7415440) returned failure for request: vtkInformation (0xa83f7c0)
[VTK] Debug: Off
[VTK] Modified Time: 223493
[VTK] Reference Count: 1
[VTK] Registered Events: (none)
[VTK] Request: REQUEST_INFORMATION
[VTK] ALGORITHM_AFTER_FORWARD: 1
[VTK] FORWARD_DIRECTION: 0
There are also a few instances of
DICOM plugin failed to load '16: XA SCOPY [16]' as a 'Image sequence'.
Traceback (most recent call last):
File ".../Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/DICOMLib/DICOMUtils.py", line 812, in loadLoadables
loadSuccess = plugin.load(loadable)
File ".../Slicer-5.6.2-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/DICOMImageSequencePlugin.py", line 357, in load
imageData, ijkToRas = self.loadImageData(filePath, loadable.grayscale, tempFrameVolume)
File ".../Slicer-5.6.2-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/DICOMImageSequencePlugin.py", line 235, in loadImageData
f"Could not read image {loadable.name} from file {filePath}. Error is: {errorString}")
NameError: name 'loadable' is not defined
(this seems to be a bug in the error-handling code, and I haven’t checked if it is fixed in later releases)
Since, as I said, several tools can read and process these files, I tried to manipulate them a little (in particular, add PixelSpacing, remove the Cyrillic encoding since all the texts are in ASCII anyway, using pydicom; change the image representation to JPEG using gdcmconv
). This changed nothing.
I want to attach the first of these files (no need for anonymization, the image is of a pig), but the forum seems to only allow conventional image files.