Hello<br>Thanks in advance for the help.<br>I&#39;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&#39;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 = &quot;0010|0020&quot;;
<br>dicomIO-&gt;GetValueFromTag(tagkey, patientID);<br>std::cout&nbsp; &lt;&lt; &quot;&nbsp;&nbsp;&nbsp; Patient ID: &quot; &lt;&lt; patientID &lt;&lt; std::endl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>std::string patientBirthDate;<br>tagkey = &quot;0010|0030&quot;;
<br>dicomIO-&gt;GetValueFromTag(tagkey, patientBirthDate);<br>std::cout&nbsp; &lt;&lt; &quot;&nbsp;&nbsp;&nbsp; Patient BirthDate: &quot; &lt;&lt; patientBirthDate &lt;&lt; std::endl;<br><br>[...]<br><br>std::string studyInstanceUID;<br>tagkey = &quot;0020|000D&quot;;
<br>bool found = dicomIO-&gt;GetValueFromTag(tagkey, studyInstanceUID);<br></div><div style="margin-left: 40px;">std::cout&nbsp; &lt;&lt; &quot;&nbsp;&nbsp;&nbsp; Study Instance UID: &quot; &lt;&lt; studyInstanceUID &lt;&lt; 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&nbsp; Patient ID: 278579
<br>[...]<br>0020,000D&nbsp; Study Instance UID: 1.2.840.41213141111.2.9.3.400025584 <br></div><br>So I&#39;m lost. Does someone has an idea where/what is the problem ?<br>Perhaps I&#39;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>