[Insight-users] GIPL File Format

Julien Jomier julien.jomier at kitware.com
Wed Jul 12 13:14:02 EDT 2006


Hi Jurgen,

This is strange...

Couple of questions to see where the error might be:

a) Can you try to run the itkGiplImageIOTest located in 
Insight/Testing/Code/IO?
b) Can your program read the Insight/Testing/Code/Data/Input/ramp.gipl file?
c) Are you using any other object factory in your programs? (I guess the 
answer is no...)

I've seen this kind of error before and most of the time this is due to 
a mix of versions between includes and libraries.

Let us know,

Julien

Jurgen.Fripp at csiro.au wrote:
> Hi
>    Hopefully this isn't a false bug report, as I haven't been able to determine it's cause (or a proper fix). But at least using itk 2.2 gipl works by default in the reader/write. However, using itk 2.8.1 all my programs abort when trying to read gipl unless I explicitly register the gipl factory 
> ie 
> itk::ObjectFactoryBase::RegisterFactory( itk::GiplImageIOFactory::New() );
> 
> Note: This was only tested on two ubuntu 5.10 pc's and both used gcc-3.3.
> 
> I checked itkImageIOFactory and gipl is still registered and the filename check in gipl appears valid (and obviously works when explicitly registered). I assume it's clashing with another factory but haven't worked out which (although haven't spent too much time looking into it).
> 
> Cheers Jurgen
> 
> PS This isn't very helpful, but after adding DebugOn to the reader of a simple ImageConversion program (itkReader -> itkWriter) without the factory an abort occurs and you obtain 1, with the factory explicitly registered it works and you obtain 2.
>  
> 1. 
> ./milxImageConverter /media/sdb1/NonRigidRegistration/results/AllImagesNonRigidRegisteredTo6_ExpID3/nonrigid_expID3_255_2_nreg010mmBin.gipl /tmp/tmp.hdr
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 312
> ImageFileReader (0x8477be0): Registered, ReferenceCount = 2
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477be0): UnRegistered, ReferenceCount = 1
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 312
> ImageFileReader (0x8477be0): Registered, ReferenceCount = 2
> 
> Debug: In /usr/local/include/InsightToolkit/IO/itkImageFileReader.txx, line 93
> ImageFileReader (0x8477be0): Reading file for GenerateOutputInformation()/media/sdb1/NonRigidRegistration/results/AllImagesNonRigidRegisteredTo6_ExpID3/nonrigid_expID3_255_2_nreg010mmBin.gipl
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477be0): UnRegistered, ReferenceCount = 1
> 
> Debug: In /usr/local/include/InsightToolkit/Common/itkProcessObject.h, line 268
> ImageFileReader (0x8477be0): returning ReleaseDataBeforeUpdateFlag of 0
> 
> Debug: In /usr/local/include/InsightToolkit/IO/itkImageFileReader.txx, line 340
> ImageFileReader (0x8477be0): ioRegion: ImageIORegion (0xbfb755d0)
>   Dimension: 3
>   Index: 0 0 0
>   Size: 0 1 1
> 
> 
> Debug: In /usr/local/include/InsightToolkit/IO/itkImageFileReader.txx, line 356
> ImageFileReader (0x8477be0): Buffer conversion required.
> 
> Aborted
> 
> 2.
>  ./milxImageConverter /media/sdb1/NonRigidRegistration/results/AllImagesNonRigidRegisteredTo6_ExpID3/nonrigid_expID3_255_2_nreg010mmBin.gipl /tmp/tmp.hdr
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 312
> ImageFileReader (0x8477c70): Registered, ReferenceCount = 2
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477c70): UnRegistered, ReferenceCount = 1
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 312
> ImageFileReader (0x8477c70): Registered, ReferenceCount = 2
> 
> Debug: In /usr/local/include/InsightToolkit/IO/itkImageFileReader.txx, line 93
> ImageFileReader (0x8477c70): Reading file for GenerateOutputInformation()/media/sdb1/NonRigidRegistration/results/AllImagesNonRigidRegisteredTo6_ExpID3/nonrigid_expID3_255_2_nreg010mmBin.gipl
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477c70): UnRegistered, ReferenceCount = 1
> 
> Debug: In /usr/local/include/InsightToolkit/Common/itkProcessObject.h, line 268
> ImageFileReader (0x8477c70): returning ReleaseDataBeforeUpdateFlag of 0
> 
> Debug: In /usr/local/include/InsightToolkit/IO/itkImageFileReader.txx, line 340
> ImageFileReader (0x8477c70): ioRegion: ImageIORegion (0xbfe8f6b0)
>   Dimension: 3
>   Index: 0 0 0
>   Size: 512 512 70
> 
> 
> Debug: In /usr/local/include/InsightToolkit/IO/itkImageFileReader.txx, line 349
> ImageFileReader (0x8477c70): No buffer conversion required.
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 312
> ImageFileReader (0x8477c70): Registered, ReferenceCount = 2
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477c70): UnRegistered, ReferenceCount = 1
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 312
> ImageFileReader (0x8477c70): Registered, ReferenceCount = 2
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477c70): UnRegistered, ReferenceCount = 1
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 312
> ImageFileReader (0x8477c70): Registered, ReferenceCount = 2
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477c70): UnRegistered, ReferenceCount = 1
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 312
> ImageFileReader (0x8477c70): Registered, ReferenceCount = 2
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477c70): UnRegistered, ReferenceCount = 1
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 328
> ImageFileReader (0x8477c70): UnRegistered, ReferenceCount = 0
> 
> Debug: In /usr/src/InsightToolkit-2.8.1/Code/Common/itkObject.cxx, line 512
> Object (0x8477c70): Destructing!
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 



More information about the Insight-users mailing list