well, i am trying, regarding the well documented feature described in http://support.dcmtk.org/wiki/dcmtk/how ... metaheader to only load the meta-header (mainly for performance issues), but I always get a bad()-state:
Approach 2:
Code: Select all
status = fileFormat->loadFile(dicomFileNames.at(idx).c_str());
status = fileFormat->getDataset()->findAndGetOFString(DCM_SOPClassUID, result); // good()
status = fileFormat->loadFile(dicomFileNames.at(idx).c_str(),
EXS_Unknown,
EGL_noChange,
DCM_MaxReadLength,
ERM_metaOnly);
status = fileFormat->getDataset()->findAndGetOFString(DCM_SOPClassUID, result); // bad()
status = fileFormat->getMetaInfo()->findAndGetOFString(DCM_SOPClassUID, result); // bad()
Approach 1:
Code: Select all
status = metaInfo->loadFile(dicomFileNames.at(idx).c_str());
status = metaInfo->findAndGetOFString(DCM_SOPClassUID, result); // bad()
Thanks for your advice,
Daniel