[Insight-users] RE: read and write images
Luis Ibanez
luis.ibanez at kitware.com
Fri, 02 Jan 2004 14:24:24 -0500
Hi Steven,
Please read the previous (today's) posting
http://www.itk.org/pipermail/insight-users/2004-January/006088.html
There are not readers nor writers for PGM format in ITK.
You will find readers/writers for PNG, TIFF, JPEG and
the formats listed in the FAQ entry posted in the email
above.
The meaning of the message:
"NO ImageIO set, or None could be created"
is that the file format you are requesting is not
supported by ITK. Please read chapter 7 of the
SoftwareGuide for details on the modular IO
architecture of ITK.
http://www.itk.org/ItkSoftwareGuide.pdf
Regards,
Luis
--------------------------
Steven Chen wrote:
> Hi, All
>
> Some problems in writing an image to a file.
> I just put an image-1.pgm and an image.2.pgm file in the c:, and execute
> the examples ImageReadWrite.cxx. I use a command line and type in :
> ImageReadWrite c:\image-1.pgm c:\image-2.pgm,
>
> but the following errors occur:
> ***********************************************************
> *itk::ExceptionObject (00E8F874)
> Location: "Unknown"
> File:
> c:\cisc499\steven-chen\insight\insighttoolkit-1.4.0\code\io\itkImageFileWr
> iter.txx
> Line: 143
> Description: itk::ERROR: ImageFileWriter(011B6B60): No ImageIO set, or
> none coul
> d be created.*
> **************************************************8
>
> I believe that i have included :
> itkImageFileReader.h
> itkImageFileWriter.h
> itkImage.h
>
> So what is the meaning of " NO ImageIO set, or None could be created"
>
> Thanks a lot.
>
> Steven Chen
>
>
>