[Insight-developers] PNG unsupported in modular ITK
Bradley Lowekamp
blowekamp at mail.nih.gov
Tue Mar 15 13:25:06 EDT 2011
Luis,
Shouldn't these be enabled by default?
Brad
On Mar 15, 2011, at 1:20 PM, Luis Ibanez wrote:
> 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
>>
>>
> _______________________________________________
> 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
========================================================
Bradley Lowekamp
Lockheed Martin Contractor for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110315/bc6da793/attachment.htm>
More information about the Insight-developers
mailing list