<div dir="ltr">Hello all,<div><br></div><div>The documentation of   itk::ProcessObject::GenerateOutputInformation( )  says</div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px;line-height:22px">Generate the information describing the output data. [1]. The </span>GenerateOutputInformation() in itkImageFileReader first create all instances of ImageIO and setup direction, spacing, etc.. </div><div><br></div><div>If I understand correctly, the GenerateOutputInformation in the image file reader is  called by UpdateOutputInformation( )</div><div><br></div><div>To my question, </div><div>If I call reader->UpdateOutputInformation() for first time it calls </div><div>reader->GenerateOutputInformation() as described in docs[2]. </div><div><br></div><div>Now If I have a second call to reader->UpdateOutputInformation( ) ?</div><div><br></div><div>Will it again go to GenerateOutputInformation() and createAllInstances of imageio , do the same thing again!</div><div><br></div><div>In itkProcessObject.cxx, there is the below documentation</div><div><br></div><div><div>   * Call GenerateOutputInformation for subclass specific information.</div><div>   * Since UpdateOutputInformation propagates all the way up the pipeline,</div><div>   * we need to be careful here to call GenerateOutputInformation only if</div><div>   * necessary. Otherwise, we may cause this source to be modified which</div><div>   * will cause it to execute again on the next update.</div></div><div><br></div><div>How can I prevent it from calling it again in class sub class of itk::ImageSource?</div><div><br></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px;line-height:22px">[1]<a href="http://www.itk.org/Doxygen/html/classitk_1_1ProcessObject.html#abe61fb6b7de8c443e7af1561bd722736">http://www.itk.org/Doxygen/html/classitk_1_1ProcessObject.html#abe61fb6b7de8c443e7af1561bd722736</a></span></font><br></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px;line-height:22px"><br></span></font></div><div><div><br></div>-- <br><div class="gmail_signature"><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div></div>
</div></div>