[Insight-users] What does this error mean?

Miller, James V (Research) millerjv@crd.ge.com
Tue, 22 Apr 2003 16:26:29 -0400


The image IO factory mechanism triggers off the extension of the output
file.  In your first example, none of the ImageIO objects knew how to write
a file called tst1.  You need to put an extension on the output file so that
a format can be determined/

./PNGImageReadWrite tes.png 1 tst1.png

'Course this begs the question why is this called a PNGImageReadWrite :)



> -----Original Message-----
> From: Bill Oliver [mailto:billo@Radix.Net]
> Sent: Tuesday, April 22, 2003 2:37 PM
> To: insight-users@public.kitware.com
> Subject: [Insight-users] What does this error mean?
> 
> 
> 
> I am playing with the included applications in the ITK package, and am
> having difficulty writing PNG images.   For instance, if I run
> PNGImageReadWrite on a 2D png image, I get
> 
> % ./PNGImageReadWrite tst.png 1 tst1
> 
> File succesfully read !
> Exception caught during PNG file writing
> 
> itk::ExceptionObject (0x8077bb8)
> Location: "Unknown"
> File: /usr/local/include/InsightToolkit/IO/itkImageFileWriter.txx
> Line: 119
> Description: itk::ERROR: ImageFileWriter(0x8076608): No 
> ImageIO set, or none could be created.
> 
> 
> 
> I get the *same* error if I read in a 3D raw image:
> 
> ./RawImageReadWritePNG tst.raw 256 256 256 tst1
> File succesfully read !
> Exception caught during Raw file writing
> 
> itk::ExceptionObject (0x8083cc8)
> Location: "Unknown"
> File: /usr/local/include/InsightToolkit/IO/itkImageFileWriter.txx
> Line: 119
> Description: itk::ERROR: ImageFileWriter(0x80819d0): No 
> ImageIO set, or none could be created.
> 
> 
> What does this error mean?  I looked at the .txx file, but 
> the only thing I got out
> of it was that the ImageIO was not constructed.
> 
> 
> I *don't* get an error reading the data files or viewing them 
> (either PNG or Raw) only
> writing them.
> 
> Further, some other apps, such as 
> AnisotropicDiffusionFltkGui2D can, indeed, read and save
> a .png file.
> 
> Thanks!
> 
> 
> billo
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>