[Insight-developers] IO Factories

Wilson Chang wmcst6+@pitt.edu
Mon, 22 Oct 2001 12:31:53 -0400


----- Original Message -----
From: "Luis Ibanez" <ibanez@cs.unc.edu>
To: "Wilson Chang" <wmcst6@pitt.edu>
Cc: "Bill Hoffman" <bill.hoffman@kitware.com>; "insight-Developers"
<insight-developers@public.kitware.com>
Sent: Monday, October 22, 2001 11:33 AM
Subject: Re: [Insight-developers] IO Factories



> 2) ReadHeader() read the header, set spacing,
>    and set dimensions. I'm not that sure about
>    doing the memory allocation here though.
>

Luis,

I think the memory allocation is actually done in
ImageFileReader::GenerateData().  I think the only modification would be to:
1) remove the call to ReadHeader() in CanReadFile() inside each file reader.
2) add a call to m_ImageIO->ReadHeader() in ImageFileReader::GenerateData()
before the space is allocated for the image.


thanks,

wilson