You&#39;re right. That&#39;s it.<br>Thank you.<br>David<br><br><div class="gmail_quote">On Nov 21, 2007 2:18 PM, Jean-Pierre Roux &lt;<a href="mailto:jpr@creatis.insa-lyon.fr">jpr@creatis.insa-lyon.fr</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">David Lambiel wrote:<br>&gt; Hello<br>&gt; Thanks in advance for the help.<br>&gt; I&#39;m extracting some tags from a DICOM image set. Some tags are<br>&gt; correct, some seem to be empty... But I checked with imageJ and they
<br>&gt; exists.<br>&gt;<br>&gt; For example: I&#39;m getting the tags with something like this:<br>&gt;<br>&gt; itk::GDCMImageIO::Pointer dicomIO = itk::GDCMImageIO::New();<br>&gt;<br>&gt; [...]<br>&gt;<br>&gt; std::string patientID;
<br>&gt; std::string tagkey = &quot;0010|0020&quot;;<br>&gt; dicomIO-&gt;GetValueFromTag(tagkey, patientID);<br>&gt; std::cout &nbsp;&lt;&lt; &quot; &nbsp; &nbsp;Patient ID: &quot; &lt;&lt; patientID &lt;&lt; std::endl;<br>&gt;<br>&gt; std::string patientBirthDate;
<br>&gt; tagkey = &quot;0010|0030&quot;;<br>&gt; dicomIO-&gt;GetValueFromTag(tagkey, patientBirthDate);<br>&gt; std::cout &nbsp;&lt;&lt; &quot; &nbsp; &nbsp;Patient BirthDate: &quot; &lt;&lt; patientBirthDate &lt;&lt; std::endl;<br>&gt;
<br>&gt; [...]<br>&gt;<br>&gt; std::string studyInstanceUID;<br>&gt; tagkey = &quot;0020|000D&quot;;<br><br></div>==&gt; I&#39;m not 100% sure, but I remember some troubles with gdcm when we<br>mixed uper case and lower case hexadecimal values..
<br>Did you try<br>tagkey = &quot;0020|000d&quot;;<br><br>Jean-Pierre Roux<br><div class="Ih2E3d"><br>&gt; bool found = dicomIO-&gt;GetValueFromTag(tagkey, studyInstanceUID);<br>&gt; std::cout &nbsp;&lt;&lt; &quot; &nbsp; &nbsp;Study Instance UID: &quot; &lt;&lt; studyInstanceUID &lt;&lt; std::endl;
<br>&gt;<br>&gt; The 2 first are correct, but the third is empty. The getValueFromTag<br>&gt; return me a 0. But imageJ give me for the same set:<br>&gt;<br>&gt; [...]<br>&gt; 0010,0020 &nbsp;Patient ID: 278579<br>&gt; [...]<br>
&gt; 0020,000D &nbsp;Study Instance UID: 1.2.840.41213141111.2.9.3.400025584<br>&gt;<br>&gt; So I&#39;m lost. Does someone has an idea where/what is the problem ?<br>&gt; Perhaps I&#39;m missing something, important or dumb...
<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; David Lambiel<br>&gt; -----------------------------------------------------------------<br>&gt; Swiss Federal Institute of Technology Lausanne (EPFL)<br>&gt; Signal Processing Institute (ITS)
<br>&gt; Signal Processing Laboratory 5<br>&gt; Station 11<br>&gt; ELD 225 (Bātiment ELD)<br>&gt; 1015 Lausanne<br>&gt; Switzerland<br></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">
http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br></blockquote></div><br><br clear="all"><br>-- <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