Image reconstruction from slices

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Marina.Beguin
Posts: 5
Joined: Thu, 2022-02-03, 08:45

Image reconstruction from slices

#1 Post by Marina.Beguin »

Good afternoon,

I am trying to save the image of a cylinder centred in the FOV of a PET scanner into Dicom format.

I am using the class "1.2.840.10008.5.1.4.1.1.128".
I saved one file per slice where a slice corresponds to a pixel on the z axis. I have 200 pixels on the z axis and therefore 200 files.

However, I don't know how I can obtain the full image from these files. When I open them with a viewer (Slicer3D) I have the image of each slice but the volume is not reconstructed.
Do I have to set a parameter to specify each file is a slice of the same image?

It is not easy to describe, let me know if you need more details.

Best,
Marina

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1437
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Image reconstruction from slices

#2 Post by Marco Eichelberg »

You need to make sure that the relative position of the slices in 3D spaces is correctly described (using the attributes ImagePositionPatient and ImageOrientationPatient), and all slices need to have the same FrameOfReferenceUID, because that tells a viewer that they belong to the same 3D volume. I would also suggest that you run your files through a checker such as dicom3tools "dciodvfy" to make sure they are fully valid DICOM.

Marina.Beguin
Posts: 5
Joined: Thu, 2022-02-03, 08:45

Re: Image reconstruction from slices

#3 Post by Marina.Beguin »

Thanks a lot for answering and pointing me to the "dciodvfy" checker it really helped!
I had a few bugs in my DICOM implementation, and they are now all corrected.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest