Thanks Mathieu,<div><br></div><div>I was using the old version from INRIA. I&#39;ll get version 2 and try that out.</div><div><br></div><div>I&#39;ll let you know how it goes.</div><div><br></div><div>Cheers,</div><div>Michael<br>
<br><div class="gmail_quote">On Thu, Oct 8, 2009 at 11:44 AM, 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Thu, Oct 8, 2009 at 5:30 PM, Michael Lynch &lt;<a href="mailto:mick.lynch@gmail.com">mick.lynch@gmail.com</a>&gt; wrote:<br>
&gt; hey there,<br>
&gt; I have a series of DICOM images on my system. I have the names stored in<br>
&gt; vtkStringArray. I want to display the images as a volume and have tried two<br>
&gt; different methods.<br>
&gt; 1. I looked into vtkDicomReader. And actually, if I try to open and view a<br>
&gt; single dicom then vtkDicomReader works perfectly. However, it was not able<br>
&gt; to open a series of images if I passed it the vtkStringArray. I first<br>
&gt; checked if the individual DICOM files were readable using CanReadFile...the<br>
&gt; results were positive for all files in the string array. Below is the error<br>
&gt; I got.<br>
&gt; error message:<br>
&gt; vtkDICOMImageReader.cxx, line 256<br>
&gt; vtkDICOMImageReader (0xd043180): Either a filename was not specified or the<br>
&gt; specified directory does not contain any DICOM images.<br>
&gt; I thought perhaps vtkDicomReader was not able to open a series of images so<br>
&gt; I decided to migrate to vtkGdcmReader (which I heard was more powerful).<br>
&gt; 2. So I tried to read the file selection using vtkDicomReader. The result<br>
&gt; was a little more cryptic though. I get no error message when I build or run<br>
&gt; but the volume did not appear as it should. The series of images appear as<br>
&gt; just one image, perhaps it&#39;s a problem with image spacing? My main problem<br>
&gt; is that, even though I compiled GDCM in debug, qtcreator will not run in<br>
&gt; debug when I&#39;m using vtkGdcmReader. Can anyone tell me what the problem is?<br>
&gt; I hope this is the right forum for this question. But I know this mailing<br>
&gt; list has a lot of expertise and a large responsive community...so I thought<br>
&gt; I&#39;d post here.<br>
&gt; Thanks in advance,<br>
<br>
</div></div>You are using vtkGDCMImageReader right ? Not the old vtkGdcmReader<br>
from gdcm 1.x ?<br>
<br>
Just pass in the vtkStringArray:<br>
<br>
<a href="http://gdcm.sourceforge.net/html/classvtkGDCMImageReader.html#051e8ec877c64032750d1b628be247ca" target="_blank">http://gdcm.sourceforge.net/html/classvtkGDCMImageReader.html#051e8ec877c64032750d1b628be247ca</a><br>

<br>
The list of file will NOT be reordered automatically, you need to<br>
explicitely ask for reordering:<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>
HTH<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Michael <br>
</div>