<br>Yes. You need to download the latest version of GDCM, compile it (same as you do with ITK), in your cmake, you need to link your code to their libraries. I believe ITK does not include all libraries of GDCM, at least a couple of months ago.<br>
<br>I wrote some code before to access patient tag (patient ID, and some very subtle things) from Dicom image I will try to find it and send it to you.<br><br>Siqi<br><br><div class="gmail_quote">On Tue, Mar 9, 2010 at 6:48 PM, <span dir="ltr"><<a href="mailto:edoardo.belletti@alice.it">edoardo.belletti@alice.it</a>></span> 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>
<p><font size="2">Sorry but I don't undersand. What can I do for access all the tag information?<br>
I must install GDCM 2.x and than cofigure it for ITK? How can I do this?<br>
<br>
Sorry thank you very much<br>
Edoardo<br>
<br>
-----Messaggio originale-----<br>
Da: <a href="mailto:insight-users-bounces@itk.org" target="_blank">insight-users-bounces@itk.org</a> per conto di siqi chen<br>
Inviato: mar 09/03/2010 18.02<br>
A: Mathieu Malaterre<br>
Cc: ITK_forum<br>
Oggetto: Re: [Insight-users] Dicom Image : How to access to all the tags<div><div></div><div class="h5"><br>
<br>
GDCM can access all the tag information, at least in my case.<br>
<br>
<a href="http://www.creatis.insa-lyon.fr/software/public/Gdcm/" target="_blank">http://www.creatis.insa-lyon.fr/software/public/Gdcm/</a><br>
<br>
On Tue, Mar 9, 2010 at 4:58 AM, Mathieu Malaterre <<br>
<a href="mailto:mathieu.malaterre@gmail.com" target="_blank">mathieu.malaterre@gmail.com</a>> wrote:<br>
<br>
> > <a href="mailto:edoardo.belletti@alice.it" target="_blank">edoardo.belletti@alice.it</a> wrote:<br>
> >><br>
> >> Hi Insight-users,<br>
> >> I have a problem: I don't know how can I access to all the tags present<br>
> in<br>
> >> a dicom image.<br>
> >> With the code used in the example of the manual<br>
> >> (Examples/IO/DicomImageReadPrintTags.cxx) not all the tags are printed<br>
> and<br>
> >> for accuracy in the output there isn't the tag<br>
> >> "SequenceOfUltrasoundReagions" that interest me. But I know that in the<br>
> file<br>
> >> which I run this tag is present.<br>
> >> How can I access to this tag?<br>
> >> I hope I was understandable.<br>
> >> In particular the piece of code is:<br>
> ><br>
> On Tue, Mar 9, 2010 at 10:49 AM, Gomez, Alberto <<a href="mailto:alberto.gomez@kcl.ac.uk" target="_blank">alberto.gomez@kcl.ac.uk</a>><br>
> wrote:<br>
> > Hi,<br>
> ><br>
> > I have had the same problem but I think that there is no solution. It<br>
> > depends on the manufacturer of the US acquisition system, and whether the<br>
> > tags are private or not, and the data encrypted.<br>
><br>
> No.<br>
><br>
> The DICOM Attribute the OP refers to is a VR:SQ (a public element). As<br>
> of now itk::GDCMImageIO does not load VR:SQ DICOM attribute. As<br>
> described here:<br>
><br>
> <a href="http://www.itk.org/Doxygen/html/classitk_1_1GDCMImageIO.html#_details" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1GDCMImageIO.html#_details</a><br>
><br>
> ...<br>
> Warning:<br>
> There are several restrictions to this current writer:<br>
><br>
> * Eventhough during the writing process you pass in a DICOM<br>
> file as input The output file may not contains ALL DICOM field from<br>
> the input file. In particular:<br>
> o The SeQuence DICOM field (SQ).<br>
> o Fields from Private Dictionary<br>
> * Some very long (>0xfff) binary fields are not loaded<br>
> (typically 0029|0010), you need to explicitely set the maximum length<br>
> of elements to load to be bigger (see Get/SetMaxSizeLoadEntry)<br>
> ...<br>
><br>
><br>
> You have to use the underlying DICOM library (GDCM 1.x or GDCM 2.x) to<br>
> extract that particular -nested- information.<br>
><br>
> HTH<br>
> --<br>
> Mathieu<br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
<br>
</div></div></font>
</p>
</div>
</blockquote></div><br>