[Insight-developers] PNG unsupported in modular ITK
Luis Ibanez
luis.ibanez at kitware.com
Tue Mar 15 13:20:04 EDT 2011
Hi David,
Did you enable
ITKIO_SUPPORTS_PNG_IMAGEIO ?
Your options are:
A) Enable ITKIO_SUPPORTS_PNG_IMAGEIO
So that PNG is available via the factories
or
B) Directly instantiate a PNGImageIO and connect it
to the ImageFileReader by using the SetImageIO
call.
or
C) Directly register the PNG factory in your example
by making the call:
ObjectFactoryBase::RegisterFactory( PNGImageIOFactory::New() );
Luis
------------------------------------------------
On Tue, Mar 15, 2011 at 1:13 PM, David Doria <daviddoria at gmail.com> wrote:
> I configured ITK with ITKGroup_IO ON as well as ITK-IO-PNG ON. When I try a
> simple example of reading a png file, I get this error:
> what():
> /home/doriad/src/ITK/ITK/IO/Base/include/itkImageFileReader.txx:144:
> Could not create IO object for file Gourds.png
> Tried to create one of the following:
> You probably failed to set a file suffix, or
> set the suffix to an unsupported type.
> Thoughts?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>
More information about the Insight-developers
mailing list