Hi,<div><br></div><div>I am also interested in the possibility of loading DICOM overlays with itk::GDCMImageIO. Is it possible to get the Overlay data in an itk::Image object?<br><br><div class="gmail_quote">On Mon, Aug 10, 2009 at 7:10 AM, Robert Haase <span dir="ltr">&lt;<a href="mailto:robert_haase@gmx.de">robert_haase@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi again,<br>
<br>
the hint was good, but it didn&#39;t work. But that&#39;s because my first analysis of the problem was wrong: The data-item 6000|3000 which I would like to read has beginning zero-bytes  (&#39;\0&#39;) which terminate the string. So the DicomIO thinks that field is empty. Any idea how to bypass that? Is it possible to read binary-data out of an MetaDataDictionaryItem?<br>

<br>
Thanks,<br>
<font color="#888888">Robert<br>
</font><div><div></div><div class="h5"><br>
<br>
I believe this is due to a &#39;feature&#39; in itk::GDCMImageIO, see documentation:<br>
<br>
 *           -  Some very long (&gt;0xfff) binary fields are not loaded<br>
(typically 0029|0010),<br>
 *              you need to explicitely set the maximum length of<br>
elements to load to be bigger<br>
 *              (see Get/SetMaxSizeLoadEntry)<br>
<br>
Let us know if this fixes your issue.<br>
<br>
Thanks,<br>
<br>
On Fri, Aug 7, 2009 at 11:03 AM, Robert Haase&lt;<a href="mailto:robert_haase@gmx.de">robert_haase@gmx.de</a>&gt; wrote:<br>
&gt; &gt; Dear ITK Users,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m trying to read out DICOM-Header-Entries to draw Overlay-Objects above<br>
&gt; &gt; CT Images. When I use GDCMImageIO the MetaDataDictionary does not contain<br>
&gt; &gt; entry 6000|3000 (Overlay Data). When I use DicomImageIO the<br>
&gt; &gt; MetaDataDictionary contains my entry of interest but it displays an ugly<br>
&gt; &gt; error message telling me, I should use GDCMImageIO.<br>
&gt; &gt;<br>
&gt; &gt; Is there a possibility to read out 6000|3000 using GDCMImageIO? Or is<br>
&gt; &gt; there another way to get the Overlay data?<br>
&gt; &gt;<br>
&gt; &gt; Thanks a lot in advance,<br>
&gt; &gt; Robert<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<br>
&gt; &gt; Jetzt freischalten unter <a href="http://portal.gmx.net/de/go/maxdome01" target="_blank">http://portal.gmx.net/de/go/maxdome01</a><br>
&gt; &gt; _____________________________________<br>
&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; &gt;<br>
&gt; &gt; Visit other Kitware open-source projects at<br>
&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt; &gt;<br>
&gt; &gt; Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt; &gt;<br>
&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt; &gt;<br>
<br>
<br>
<br>
-- Mathieu <a href="http://mathieumalaterre.com" target="_blank">http://mathieumalaterre.com</a><br>
</div></div>--<br>
<div><div></div><div class="h5">GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<br>
Jetzt freischalten unter <a href="http://portal.gmx.net/de/go/maxdome01" target="_blank">http://portal.gmx.net/de/go/maxdome01</a><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>
Please keep messages on-topic and check the ITK FAQ at: <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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jesús Spínola<br>
</div>