[Insight-users] What does this error mean?
Mathieu Malaterre
Mathieu.Malaterre@creatis.insa-lyon.fr
Wed, 23 Apr 2003 09:53:37 +0200
Bill,
Please note that is application is obsolete and is removed from the
actual toolkit.
See:
http://www.itk.org/pipermail/insight-users/2003-March/002805.html
and
http://www.itk.org/pipermail/insight-users/2003-February/002660.html
Quoting Luis:
[The PNGImageReadWrite was an attempt to
experiment with the option of writing a volume
as a series of PNG images. Unfortunately this
functionality is not completly implemented
yet. So this particular application is not
working at this point. It is actually in the
list of applications to be removed before the
relase 1.2.]
---
If you are looking for a mechanism for reading
and writing volumes, the best formats at this
point are: MetaImage, Analyze, Gipl, Stimulate and VTK.
HTH
mathieu
Bill Oliver wrote:
> Thanks for the reply, but that doesn't do the trick.
>
> I tried it both ways.
>
> I get the same error:
>
>
> % ./PNGImageReadWrite /home/oliver/p1sm.png 1 tst.png
> File succesfully read !
> Exception caught during PNG file writing
>
> itk::ExceptionObject (0x8085550)
> Location: "Unknown"
> File: /usr/local/include/InsightToolkit/IO/itkImageFileWriter.txx
> Line: 119
> Description: itk::ERROR: ImageFileWriter(0x8082b40): No ImageIO set, or none could be created.
>
>
>
>
> On Tue, 22 Apr 2003, Miller, James V (Research) wrote:
>
>
>>From: "Miller, James V (Research)" <millerjv@crd.ge.com>
>>
>>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
>>>
>>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
--
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/