Hello<br>Thanks in advance for the help.<br>I'm extracting some tags from a DICOM image set. Some tags are correct, some seem to be empty... But I checked with imageJ and they exists.<br><br>For example: I'm getting the tags with something like this:
<br><br><div style="margin-left: 40px;">itk::GDCMImageIO::Pointer dicomIO = itk::GDCMImageIO::New();<br><br>[...]<br><br></div><div style="margin-left: 40px;">std::string patientID;<br>std::string tagkey = "0010|0020";
<br>dicomIO->GetValueFromTag(tagkey, patientID);<br>std::cout << " Patient ID: " << patientID << std::endl;<br> <br>std::string patientBirthDate;<br>tagkey = "0010|0030";
<br>dicomIO->GetValueFromTag(tagkey, patientBirthDate);<br>std::cout << " Patient BirthDate: " << patientBirthDate << std::endl;<br><br>[...]<br><br>std::string studyInstanceUID;<br>tagkey = "0020|000D";
<br>bool found = dicomIO->GetValueFromTag(tagkey, studyInstanceUID);<br></div><div style="margin-left: 40px;">std::cout << " Study Instance UID: " << studyInstanceUID << std::endl;<br></div>
<br>The 2 first are correct, but the third is empty. The getValueFromTag return me a 0. But imageJ give me for the same set:<br><br><div style="margin-left: 40px;">[...]<br></div><div style="margin-left: 40px;">0010,0020 Patient ID: 278579
<br>[...]<br>0020,000D Study Instance UID: 1.2.840.41213141111.2.9.3.400025584 <br></div><br>So I'm lost. Does someone has an idea where/what is the problem ?<br>Perhaps I'm missing something, important or dumb...
<br><br>Thanks<br><br>David Lambiel<br>-----------------------------------------------------------------<br>Swiss Federal Institute of Technology Lausanne (EPFL)<br>Signal Processing Institute (ITS)<br>Signal Processing Laboratory 5
<br>Station 11<br>ELD 225 (Bātiment ELD)<br>1015 Lausanne<br>Switzerland<br>