How to read DICOMDIR wiht DCMTK3.5.4

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
fz2841585
Posts: 11
Joined: Thu, 2010-09-02, 09:32

How to read DICOMDIR wiht DCMTK3.5.4

#1 Post by fz2841585 »

DcmDicomDir dicomdir(DICOMDIR_FILENAME);
DcmDirectoryRecord * root = &(dicomdir.getRootRecord());
DcmDirectoryRecord * PatientRecord = NULL;
DcmDirectoryRecord * StudyRecord = NULL;
DcmDirectoryRecord * SeriesRecord = NULL;
DcmDirectoryRecord * FileRecord = NULL;
OFString tmpString;

if(root != NULL)
{
while (((PatientRecord = root->nextSub(PatientRecord)) != NULL))
{
//Not enter
}
}

I'm trying to read a dicomdir with these codes,but i fail,could you tell me whether my dicomdir file is wrong?

J. Riesmeier
DCMTK Developer
Posts: 2542
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#2 Post by J. Riesmeier »

could you tell me whether my dicomdir file is wrong?
No, because you did not provide any details :-)
However, you could send the DICOMDIR file by email to dicom/at/offis/dot/de if you want.

fz2841585
Posts: 11
Joined: Thu, 2010-09-02, 09:32

#3 Post by fz2841585 »

J. Riesmeier wrote:
could you tell me whether my dicomdir file is wrong?
No, because you did not provide any details :-)
However, you could send the DICOMDIR file by email to dicom/at/offis/dot/de if you want.
I have got the answer ,0004,1500

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest