[ITK] [ITK-dev] 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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers


More information about the Community mailing list