[Insight-users] RE: read and write images

Steven Chen itkvtk at yahoo.com
Fri, 2 Jan 2004 11:08:29 -0800 (PST)


--0-1394063308-1073070509=:34427
Content-Type: text/plain; charset=us-ascii

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

 

 

 



---------------------------------
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
--0-1394063308-1073070509=:34427
Content-Type: text/html; charset=us-ascii

<DIV>Hi, All</DIV>
<DIV>&nbsp;</DIV>
<DIV>Some problems in writing an image to a file.</DIV>
<DIV>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 :</DIV>
<DIV>ImageReadWrite c:\image-1.pgm c:\image-2.pgm, </DIV>
<DIV>&nbsp;</DIV>
<DIV>but the following errors occur:</DIV>
<DIV>***********************************************************</DIV>
<DIV><STRONG>itk::ExceptionObject (00E8F874)<BR>Location: "Unknown"<BR>File: c:\cisc499\steven-chen\insight\insighttoolkit-1.4.0\code\io\itkImageFileWr<BR>iter.txx<BR>Line: 143<BR>Description: itk::ERROR: ImageFileWriter(011B6B60): No ImageIO set, or none coul<BR>d be created.</STRONG></DIV>
<DIV>**************************************************8</DIV>
<DIV>&nbsp;</DIV>
<DIV>I believe that i have included :</DIV>
<DIV>itkImageFileReader.h</DIV>
<DIV>itkImageFileWriter.h</DIV>
<DIV>itkImage.h</DIV>
<DIV>&nbsp;</DIV>
<DIV>So what is the meaning of " NO ImageIO set, or None could be created"</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks a lot.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Steven Chen</DIV>
<DIV><FONT color=#0000ff size=2>
<P>&nbsp;</P>
<P>&nbsp;</P></FONT><FONT color=#0000ff size=2>
<P></FONT>&nbsp;</P></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://search.yahoo.com/top2003">Find out what made the Top Yahoo! Searches of 2003
</a>
--0-1394063308-1073070509=:34427--