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.
get dcm file information
Moderator: Moderator Team
get dcm file information
Last edited by 7554753 on Thu, 2011-02-03, 22:55, edited 2 times in total.
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.
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.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
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.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest