<br><br><div class="gmail_quote">On Sat, Oct 31, 2009 at 4:05 PM, Mathieu Malaterre <span dir="ltr">&lt;<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>&gt;</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 class="im">On Sat, Oct 31, 2009 at 7:17 PM, Orlinn<br>
&lt;<a href="mailto:MeinDatenLaufwerk@googlemail.com">MeinDatenLaufwerk@googlemail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; hi,<br>
&gt;<br>
&gt; i would like to read dicom files with vtkGDCMImageReader but did not found<br>
&gt; any examples.<br>
&gt; With vtkDICOMImageReader i can read with<br>
&gt;<br>
&gt;         vtkDICOMImageReader= new vtKDICOMImageReader();<br>
&gt;         reader.setDirectory(&quot;c/dicomfiles/dicomDirectory&quot;)<br>
&gt;         reader.update();<br>
<br>
</div>I considered this q bqd design. Instead you have to use to vtk<br>
objects: vtkDirectory -&gt; GetFilenames -&gt; vtkGDCMImageReader.<br>
<br>
In this case you are free to remove/add/manipulate the order of the<br>
the Filenames before passing to vtkGDCMImageReader.<br>
<div class="im"><br>
&gt; vtkGDCMIamgeReader has not such method to set a directory which containts<br>
&gt; DICOM files.<br>
<br>
</div>Make sure to read at least twice the FAQ:<br>
<br>
<a href="http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Using_GDCM_API#Automatic_ordering_of_slices_for_vtkGDCMImageReader.SetFileNames" target="_blank">http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Using_GDCM_API#Automatic_ordering_of_slices_for_vtkGDCMImageReader.SetFileNames</a><br>

<br>
Cheers<br>
--<br>
<font color="#888888">Mathieu<br>
</font><div><div></div><div class="h5"></div></div></blockquote><div><br>There seems to be quite a number of questions about DICOM files on the mailing list. Can someone who has done this successfully put some brief examples of reading different types of these files on the wiki along with example data sets? I think this is a much needed addition to the examples section but unfortunately I have never worked with this medical data.<br>
<br clear="all">Thanks,<br><br>David <br></div></div>