[ITK-dev] [ITK] imagefilereader

Matt McCormick matt.mccormick at kitware.com
Tue May 24 14:06:49 EDT 2016


On Tue, May 24, 2016 at 12:18 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Without looking at the code, are you saying that a customer has to
> change their application from:
>
> reader->GenerateOutputInformation();
>
> to
>
> reader->UpdateOutputInformation();

Yes. UpdateOutputInformation() is the public method that a user wants
to call. GenerateOutputInformation() is a protected member that the
algorithm implemented defines.


> Why?

GeneratedOutputInformation() gets called when
UpdateOutputInformation() gets called. It is possible that
GenerateOutputInformation() will not generate the correct output
information; unlike UpdateOutputInformation(), it does not ensure that
the inputs that it is generating its output information from have been
updated.


Thanks,
Matt


More information about the Insight-developers mailing list