[Insight-developers] Could not create IO object for file cthead1.png
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Mar 15 11:26:02 EDT 2011
Luis,
I understand the point of being able to choose which file formats or
supported, but shouldn't we have all the file formats supported by
default?
Having to select then at build time seems counter intuitive to me.
Thanks,
Gaëtan
Le 15 mars 11 à 16:20, Luis Ibanez a écrit :
> There are two ways of addressing this issue.
>
>
> A) When you configure ITK,
> Enable the flags:
>
> ITKIO_SUPPORTS_ANALYZE_IMAGEIO
> ITKIO_SUPPORTS_BIORAD_IMAGEIO
> ITKIO_SUPPORTS_BMP_IMAGEIO
> ITKIO_SUPPORTS_GDCM_IMAGEIO
> ITKIO_SUPPORTS_GIPL_IMAGEIO
> ITKIO_SUPPORTS_JPEG_IMAGEIO
> ITKIO_SUPPORTS_LSM_IMAGEIO
> ITKIO_SUPPORTS_META_IMAGEIO
> ITKIO_SUPPORTS_NIFTI_IMAGEIO
> ITKIO_SUPPORTS_NRRD_IMAGEIO
> ITKIO_SUPPORTS_PNG_IMAGEIO
> ITKIO_SUPPORTS_STIMULATE_IMAGEIO
> ITKIO_SUPPORTS_TIFF_IMAGEIO
> ITKIO_SUPPORTS_VTK_IMAGEIO
>
> (or any subset of them that correspond to the
> image file formats used by the tests,.. or the
> wrapping in general)
>
>
>
> or
>
>
> B) In your test driver,
> call a helper registrar such as
> the function:
>
> ProcessArgumentsAndRegisterBuiltInFactories()
>
> that is available in
>
> ITK/Core/TestKernel/include/
> itkTestDriverIncludeBuiltInIOFactories.h
>
>
> You can see examples of this in:
>
> ITK/Core/TestKernel/CreateTestDriver.cmake
>
>
>
>
> Luis
>
>
>
> ------------------------------------------------
> On Tue, Mar 15, 2011 at 11:13 AM, Bradley Lowekamp
> <blowekamp at mail.nih.gov> wrote:
>> I have run into similar behavior with SimpleITK, but haven't gotten
>> to
>> closely look at the issue yet.
>>
>> 58: Test command:
>> /scratch/blowekamp/build/SimpleITK-gcc/bin/SimpleITKUnitTestDriver
>> --gtest_filter=BasicFilters.Tan
>> 58: Test timeout computed to be: 1500
>> 58: Note: Google Test filter = BasicFilters.Tan
>> 58: [==========] Running 1 test from 1 test case.
>> 58: [----------] Global test environment set-up.
>> 58: [----------] 1 test from BasicFilters
>> 58: [ RUN ] BasicFilters.Tan
>> 58:
>> /scratch/blowekamp/build/SimpleITK-gcc/Testing/Unit/
>> sitkTanImageFilterTest.cxx:43:
>> Failure
>> 58: Expected: inputA.reset ( reader.SetFileName
>> ( dataFinder.GetFile (
>> "Input/Ramp-Zero-One-Float.nrrd" ) ).Execute() ) doesn't throw an
>> exception.
>> 58: Actual: it throws.
>> 58: Failed to load Input/Ramp-Zero-One-Float.nrrd
>> 58: [ FAILED ] BasicFilters.Tan (0 ms)
>> 58: [----------] 1 test from BasicFilters (0 ms total)
>> 58:
>> 58: [----------] Global test environment tear-down
>> 58: [==========] 1 test from 1 test case ran. (0 ms total)
>> 58: [ PASSED ] 0 tests.
>> 58: [ FAILED ] 1 test, listed below:
>> 58: [ FAILED ] BasicFilters.Tan
>> 58:
>> 58: 1 FAILED TEST
>> 1/1 Test #58: BasicFilters.Tan .................***Failed 0.03 sec
>>
>> On Mar 15, 2011, at 10:55 AM, Gaëtan Lehmann wrote:
>>
>> Hi,
>>
>> I've mostly fixed the build of wrappers with the modularized ITK, but
>> the tests are all broken because of that problem:
>>
>> RuntimeError: /home/glehmann/src/ITK/ITK/IO/Base/include/
>> itkImageFileReader.txx:144:
>> Could not create IO object for file /home/glehmann/src/ITK/Wrapping/
>> WrapITK/images/cthead1.png
>> Tried to create one of the following:
>> You probably failed to set a file suffix, or
>> set the suffix to an unsupported type.
>>
>> or the similar problem for the writer:
>>
>> RuntimeError: /home/glehmann/src/ITK/ITK/IO/Base/include/
>> itkImageFileWriter.txx:157:
>> Could not create IO object for file CastImageFilter.png
>> Tried to create one of the following:
>> You probably failed to set a file suffix, or
>> set the suffix to an unsupported type.
>>
>>
>> It seems that the ImageIO are not registered.
>>
>> Any idea of what can lead to this behavior?
>>
>> Thanks,
>>
>> Gaëtan
>>
>> --
>> Gaëtan Lehmann
>> Biologie du Développement et de la Reproduction
>> INRA de Jouy-en-Josas (France)
>> tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
>> http://voxel.jouy.inra.fr http://www.itk.org
>> http://www.mandriva.org http://www.bepo.fr
>>
>> <PGP.sig><ATT00001..txt>
>>
>> ========================================================
>>
>> Bradley Lowekamp
>>
>> Lockheed Martin Contractor for
>>
>> Office of High Performance Computing and Communications
>>
>> National Library of Medicine
>>
>> blowekamp at mail.nih.gov
>>
>>
>> _______________________________________________
>> 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
>>
>>
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110315/f23da1a9/attachment.pgp>
More information about the Insight-developers
mailing list