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!
How to read dicom image files in a directory?
Moderator: Moderator Team
-
- 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?
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
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
Re: How to read dicom image files in a directory?
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?
Is that working?
-
- 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?
Hi,
I don't know, try I never did 3D rendering or VTK import so far by myself.
Best,
Michael
I don't know, try I never did 3D rendering or VTK import so far by myself.
Best,
Michael
Re: How to read dicom image files in a directory?
Thanks.Michael Onken wrote:Hi,
I don't know, try I never did 3D rendering or VTK import so far by myself.
Best,
Michael
Who is online
Users browsing this forum: Google [Bot] and 1 guest