[Insight-developers] IO Factories
Luis Ibanez
ibanez@choroid.cs.unc.edu
Wed, 24 Oct 2001 03:00:19 -0400 (EDT)
Bill,
Thanks for the changes, that's much better now.
I updated MetaImageIO: ReadHeader() was removed
and its code was implemented into CanReadFile()
and ReadImageInformation().
Examples like Curve2DExtractor can now load
PNG and Meta images.
A remaining open issue is the image dimension,
Should we check that the dimension of the image
file corresponds to what ImageFileReader<> is
expecting ?
Thanks
Luis.
----------------------
On Tue, 23 Oct 2001, Bill Hoffman wrote:
> I have checked in the following:
>
> 1. I added a new pure virutal to ImageIOBase:
> void ImageIOBase::ReadImageInformation() = 0 ;
>
> 2. I removed ReadHeader from PNGImageIO and added ReadImageInformation, and
> made CanReadFile only check if the file is a valid png image file.
>
> 3. I changed MetaImageIO and itkVOLImageIO to implement ReadImageInformation, for
> now I just called ReadHeader for both of these classes, but the classes should be
> fixed.
>
> -Bill
>
>
--
Luis Ibanez CB#: 7060
Research Assistan Professor phone: (919) 843 5436
Division of Neurosurgery fax: (919) 966 6627
University of North Carolina at Chapel Hill email: ibanez@cs.unc.edu
Chapel Hill, NC 27599-7060 http://www.cs.unc.edu/~ibanez