get dcm file information

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
7554753
Posts: 11
Joined: Tue, 2008-07-15, 05:38

get dcm file information

#1 Post by 7554753 »

how can i get a dcm file information?
i mean that i just want to read the file header infromation in order to save time.
Last edited by 7554753 on Thu, 2011-02-03, 22:55, edited 2 times in total.

7554753
Posts: 11
Joined: Tue, 2008-07-15, 05:38

#2 Post by 7554753 »

May be i don't express my meaning exactly.
so, i just want to know the dcm file header information, such as patientID or patient Name;
I know
DcmFileFormat* p_dfile ->loadFile(filename,.......)
p_dfile ->getDataset()->findAndGetOFString(DCM_PatientID, buffer)
can do this, but i think it will load the entire file into memery buffer, but i do not need to know the pixel data.
Last edited by 7554753 on Thu, 2011-02-03, 22:55, edited 2 times in total.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#3 Post by Jörg Riesmeier »

Large data element values (like Pixel Data) are not loaded by default. This is why there is an optional parameter "maxReadLength" for the loadFile() method.

7554753
Posts: 11
Joined: Tue, 2008-07-15, 05:38

#4 Post by 7554753 »

haha,thanks.
I find GDCM performs perfect in file scanning.

Post Reply

Who is online

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