Hello,<br><br>Sorry for the cross posting. Response could by in french or in english as you want.<br>
i use gdcm-1.3.2<br>
<br>
if i read a dicom file witch include all item STUDY SERIES IMAGE.<br>
the following code work perfectly:<br>
==============================<div id=":3y" class="ii gt">====<br>
fw = GDCM_NAME_SPACE::DicomDir::New();<br>
fw->SetFileName ( fileName );<br>
fw->Load( );<br>
<br>
// Test if the DicomDir is readable<br>
if( !fw->IsReadable() )<br>
{<br>
std::cout<<"[DCMRDIR] DicomDir '"<<fileName<br>
<<"' is not readable ...Failled"<<std::endl;<br>
}<br>
================================<br>
<br>
<br>
But if the DICOMDIR include only STUDY directory record type and refer<br>
to DIRFILE for SERIES using referenced file ID for series information<br>
and again for IMAGES information like:<br>
<br>
DICOMDIR<br>
Study1-------DIRFILE<br>
Series1----------DIRFILE<br>
Image1<br>
Image2<br>
Image3<br>
Series2----------DIRFILE<br>
Image1<br>
Image2<br>
Image3<br>
Study2-------DIRFILE<br>
Series1----------DIRFILE<br>
Image1<br>
Image2<br>
Image3<br>
<br>
<br>
With the same code i obtained the following error for each<br>
<br>
<br>
Error: In /home/thomas/ExternalLibraries/gdcm-1.3.2/src/gdcmDicomDir.cxx,<br>
line 754, function void gdcm::DicomDir::CreateDicomDir()<br>
Add AddStudyToEnd failed<br>
<br>
Any one have an idea ?<br>I have read nema part3.10 and i have see only example and descritpion for a single DICOMDIR file. Never see some think about complience of this structure of files (DICOMDIR or DIRFILE). So this sturucture is compliance or not ?<br>
<br>
I can joint DICOMDIR and DIRFILE if required<br>
<br>
Thank!<br>
<font color="#888888">Tom</font></div>