You're right. That's it.<br>Thank you.<br>David<br><br><div class="gmail_quote">On Nov 21, 2007 2:18 PM, Jean-Pierre Roux <<a href="mailto:jpr@creatis.insa-lyon.fr">jpr@creatis.insa-lyon.fr</a>> 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>> Hello<br>> Thanks in advance for the help.<br>> I'm extracting some tags from a DICOM image set. Some tags are<br>> correct, some seem to be empty... But I checked with imageJ and they
<br>> exists.<br>><br>> For example: I'm getting the tags with something like this:<br>><br>> itk::GDCMImageIO::Pointer dicomIO = itk::GDCMImageIO::New();<br>><br>> [...]<br>><br>> 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><br></div>==> I'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 = "0020|000d";<br><br>Jean-Pierre Roux<br><div class="Ih2E3d"><br>> bool found = dicomIO->GetValueFromTag(tagkey, studyInstanceUID);<br>> std::cout << " Study Instance UID: " << studyInstanceUID << std::endl;
<br>><br>> The 2 first are correct, but the third is empty. The getValueFromTag<br>> return me a 0. But imageJ give me for the same set:<br>><br>> [...]<br>> 0010,0020 Patient ID: 278579<br>> [...]<br>
> 0020,000D Study Instance UID: 1.2.840.41213141111.2.9.3.400025584<br>><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></div>> ------------------------------------------------------------------------<br>
><br>> _______________________________________________<br>> Insight-users mailing list<br>> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">
http://www.itk.org/mailman/listinfo/insight-users</a><br>><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