How to read dicom image files in a directory?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
visDicare
Posts: 26
Joined: Tue, 2012-04-24, 02:26

How to read dicom image files in a directory?

#1 Post by visDicare »

Hi Guys,
I am trying to read dicom image files in a directory. I want to get the data volume(3D array of pixel data). And Sometimes there's not only one series of CT image files in the directory. Can anyone share some idea or examples with me? Thanks very much!

Michael Onken
DCMTK Developer
Posts: 2051
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: How to read dicom image files in a directory?

#2 Post by Michael Onken »

Hi,

use DcmFileformat to load the files, each separately. See API documentation of dcmdata how to do that.

Then you must look for the Series Instance UID in each file (again, see example how to search for a specific value). If the UID is the same, the two files belong to the same series.

For the 3D reconstruction, DCMTK does not give any help. Functionality like that can be found in image processing(!) libraries like ITK/VTK, MITK, Slicer etc. You should find all of them easily by searching the net.

Best,
Michael

visDicare
Posts: 26
Joined: Tue, 2012-04-24, 02:26

Re: How to read dicom image files in a directory?

#3 Post by visDicare »

Thanks in advance!And actually I am using VTK do the 3D volumn rendering. And I also found this: viewtopic.php?t=1273&start=0&postdays=0 ... conversion
Is that working?

Michael Onken
DCMTK Developer
Posts: 2051
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: How to read dicom image files in a directory?

#4 Post by Michael Onken »

Hi,

I don't know, try :) I never did 3D rendering or VTK import so far by myself.

Best,
Michael

visDicare
Posts: 26
Joined: Tue, 2012-04-24, 02:26

Re: How to read dicom image files in a directory?

#5 Post by visDicare »

Michael Onken wrote:Hi,

I don't know, try :) I never did 3D rendering or VTK import so far by myself.

Best,
Michael
Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest