[Insight-users] ImageIOFactory

Luis Ibanez luis.ibanez@kitware.com
Mon, 10 Feb 2003 12:05:59 -0500


Hi Julien, Marcel

I guess the Gipl reader is selfcontained in the toolkit,
in that case it shouldn't be a problem to register its
factory by default.  I'll add it to the list of registered
factories.

Maybe we should restrict the Analyze reader from
returning true in generic files....

   Luis


------------------------------------------------------

Julien Jomier wrote:

>Hi Marcel,
>
>  
>
>>I was unable to read in a GIPL image using the 
>>ImageFileReader class and I 
>>found that the GiplImageIOFactory class was not registered in 
>>ImageIOFactory, was this done intentionally?
>>    
>>
>
>Yes this was intentional. 
>Luis do you think we can register gipl file format now using .gipl
>extension ?
>
>  
>
>>In addition to that, I had to register the GIPL factory 
>>before the Analyze 
>>factory, otherwise the .gipl files will be opened using the 
>>Analyze IO class: ... ObjectFactoryBase::RegisterFactory( 
>>VTKImageIOFactory::New() ); // The following line was added 
>>ObjectFactoryBase::RegisterFactory( 
>>GiplImageIOFactory::New()); 
>>ObjectFactoryBase::RegisterFactory( AnalyzeImageIOFactory::New()); ...
>>    
>>
>
>This is a problem with the analyze factory ...
>Basically, in AnalyzeImageIO, CanRead() return true if he can read the
>complete file (which is true for every file format) and do not check if
>the file is really an Analyze one.
>
>Thanks for pointing this out.
>
>Julien
>
>  
>
>>-----Original Message-----
>>From: insight-users-admin@public.kitware.com 
>>[mailto:insight-users-admin@public.kitware.com] On Behalf Of 
>>Marcel Prastawa
>>Sent: Sunday, February 09, 2003 8:48 PM
>>To: insight-users@public.kitware.com
>>Subject: [Insight-users] ImageIOFactory
>>
>>
>>
>>I was unable to read in a GIPL image using the 
>>ImageFileReader class and I 
>>found that the GiplImageIOFactory class was not registered in 
>>ImageIOFactory, was this done intentionally?
>>
>>In addition to that, I had to register the GIPL factory 
>>before the Analyze 
>>factory, otherwise the .gipl files will be opened using the 
>>Analyze IO class: ... ObjectFactoryBase::RegisterFactory( 
>>VTKImageIOFactory::New() ); // The following line was added 
>>ObjectFactoryBase::RegisterFactory( 
>>GiplImageIOFactory::New()); 
>>ObjectFactoryBase::RegisterFactory( AnalyzeImageIOFactory::New()); ...
>>
>>Thanks,
>>Marcel
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users@public.kitware.com 
>>http://public.kitware.com/mailman/listinfo/ins> ight-users
>>
>>    
>>
>
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users
>
>  
>