[Insight-users] DicomSeriesReadImageWrite2 error

Luis Ibanez luis.ibanez at kitware.com
Sat Jun 18 16:44:58 EDT 2005


Hi Jim,

It looks like the filename generator is passing
an empty list to the series file reader.

In order to verify, please do the following:

Take the variable "fileNames" in line 225 of
the example DicomSeriesReadImageWrite2.cxx
and print out its values with the following
while-loop


FileNamesContainer::const_iterator itr = fileNames.begin();
while( itr != fileNames.end() )
   {
   std::cout << "Filename =  " << (*itr) << std::endl;
   ++itr;
   }

This will allow you o double check which filename
(if any) are being found in your directory.




For details on how these classes are intended to
be used together, pleaswe read the IO chapter
on the ITK Software Guide

    http://www.itk.org/ItkSoftwareGuide.pdf


Chapter 7, pdf-page 289.



     Regards,



        Luis



------------------
Jim Gerlach wrote:

> 
> I'm trying to read a DICOM series with DicomSeriesReadImageWrite2.  My 
> command line is:
> DicomSeriesReadImageWrite2 d:\Dicom sax.vtk
> I get the following output:
> The directory:
> D:\Dicom
> Contains the following DICOM Series:
> 1.3.6.1.4.1.14812.1.1951356270.1117231811.2712.1
> Now reading series:
> 1.3.6.1.4.1.14812.1.1951356270.1117231811.2712.1
> itk::ExceptionObject (00FEF9F8)
> Location: "Unknown"
> File: d:\code\itk\insighttoolkit-2.0.1\code\io\itkImageSeriesReader.txx
> Line: 194
> Description: itk::ERROR: ImageSeriesReader(0022F008): At least two 
> filenames are required.
> What is the "Location" being referred to?  The series contains 29 filenames
> Please help   -----------  JG
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 





More information about the Insight-users mailing list