[Insight-users] Error with ImageSeriesReadWrite.cxx

Luis Ibanez luis.ibanez at kitware.com
Fri Jun 17 15:01:31 EDT 2005


Hi Smriti,

The Example ImageSeriesReadWrite.cxx os described
in detail in the ITK Software Guide

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

The example has hardcoded the format for the files
to read. Currently it is


         "vwe%03d.png"


You *MUST* change this string in order to match the
pattern of the files that you are trying to read.

In your case this will probably be:

         "orig%02.jpg"


Also, the output file *can not* be just "final".
Please read the Chapter on "Reading and Writing Images"
from the ITK Software Guide. You *must* provide a valid
extension for the output filename so ITK can select the
appropriate format to use for your image.

Typical choices would be:

         final.vtk
         final.mhd
         final.hdr
         final.gipl


Please, read the documentation !!!

The ITK Examples are intended to be used along
with the Software Guide.



    Regards,


       Luis



---------------------------
SMRITI RAGHUNATHAN wrote:

> Hi,
>  I have been trying to read in a series of 2D slices in jpeg format to create the 3D volume and I am using the ImageSeriesReadWrite.cxx code for it. However, when I run the code it gives me an error that says:
> 
> Debug Error!
> Program...d Settings\Desktop\test\Debug\ImageSeriesReadWrite.exe
> 
> abnormal program termination
> 
> So to try to figure out where this problem might be occuring I tried debugging the code by adding print statements at different points. Based on that it seems to me that the error is occuring somwhere after the
> "writer->SetInput(image)" command in the program.
> 
> Any idea what I may be doing wrong. 
> My images are named orig00.jpg...orig62.jpg, so my input arguments are 0 62 final (where "final" is the outputFilename). I also tried by specifying the format the outputFilename, but it didn't work. I gave it the .raw format
> 
> Thanks
> 
> Smriti
> 
> _______________________________________________
> 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