Thanks Mathieu,<div><br></div><div>I was using the old version from INRIA. I'll get version 2 and try that out.</div><div><br></div><div>I'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"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></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 <<a href="mailto:mick.lynch@gmail.com">mick.lynch@gmail.com</a>> wrote:<br>
> hey there,<br>
> I have a series of DICOM images on my system. I have the names stored in<br>
> vtkStringArray. I want to display the images as a volume and have tried two<br>
> different methods.<br>
> 1. I looked into vtkDicomReader. And actually, if I try to open and view a<br>
> single dicom then vtkDicomReader works perfectly. However, it was not able<br>
> to open a series of images if I passed it the vtkStringArray. I first<br>
> checked if the individual DICOM files were readable using CanReadFile...the<br>
> results were positive for all files in the string array. Below is the error<br>
> I got.<br>
> error message:<br>
> vtkDICOMImageReader.cxx, line 256<br>
> vtkDICOMImageReader (0xd043180): Either a filename was not specified or the<br>
> specified directory does not contain any DICOM images.<br>
> I thought perhaps vtkDicomReader was not able to open a series of images so<br>
> I decided to migrate to vtkGdcmReader (which I heard was more powerful).<br>
> 2. So I tried to read the file selection using vtkDicomReader. The result<br>
> was a little more cryptic though. I get no error message when I build or run<br>
> but the volume did not appear as it should. The series of images appear as<br>
> just one image, perhaps it's a problem with image spacing? My main problem<br>
> is that, even though I compiled GDCM in debug, qtcreator will not run in<br>
> debug when I'm using vtkGdcmReader. Can anyone tell me what the problem is?<br>
> I hope this is the right forum for this question. But I know this mailing<br>
> list has a lot of expertise and a large responsive community...so I thought<br>
> I'd post here.<br>
> 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>