DICOM export from Slicer

Dear experts,

I use 3D Slicer for registering SPECT images at different time points. However, the exported DICOM files of all series show different voxel sizes between Python code (which shows the voxel size as 1.95313, 1.95313, 1) and DICOM viewer tools such as Slicer, MicroDICOM, and ImageJ (which show the voxel size as 1.95313, 1.95313, 1.95313). However, when I use this code and DICOM viewer tool with original DICOM images, they show the voxel dimensions as 1.95313, 1.95313, 1.95313."

My python code to extract pixel dimension is


Best regards,

Spacing between slices is determined from “Image Position Patient” values.

Thank you for your response.

I want to clarify my understanding that the thickness should be get from dicom header of export file right?

Morover, which kind of export should be exported for SPECT, scalar volume or RT? What is the difference between both?

Best regard.

Slice thickness value is irrelevant. It must not be used for determining the image geometry (origin, spacing, axis directions).

I don’t know what you mean by “RT”.

RT is the second one of DICOM export option.

I see, OK. RT is for radiationntherapy export (export of segmentation as RT structure set, transform as spatial registration object, and associated images). It is not relevant for SPECT.

Note that the exported SPECT image may need some additional fields - check the generated files if they contain all required fields described in the DICOM standard for this information object type; or use David Clunie’s DICOM verifier.

1 Like

Thank you for your kind suggestion.

I have one more error that I tried to export the SPECT as scalar volume, but it has error as attached images.

I don’t see any error message that tells why export failed. Could you please provide the full application log as text (menu: help / report a bug, so not delete any lines from it, but if there are any details you dont want to ahare then replace them by *****).

You could also try first with Export to folder option disabled.