<div dir="ltr">ITK uses a data pipeline architecture.<div><br></div><div>This means that you select a set of filters that are connected </div><div>in a sequence (the pipeline), and data will flow through the </div><div>pipeline as it is being process by each filter.</div>
<div><br></div><div><br></div><div>To connect the pipeline you use the methods</div><div><br></div><div> FilterB->SetInput( FilterA->GetOutput() )</div><div><br></div><div><br></div><div>and so on for </div>
<div><br></div><div>FilterC</div><div>FilterD</div><div>FilterE</div><div>...</div><div><br></div><div><br></div><div><br></div><div>This typically starts with a Reader in one end,</div><div>and a Writer on the other end.</div>
<div><br></div><div>Connecting the filters in the pipeline, does not</div><div>perform yet any computation.</div><div><br></div><div>The goal of the Update() method is to trigger the</div><div>execution of the Pipeline. It will execute all the</div>
<div>filters "upstream", that is, from the beginning of</div><div>the pipeline, up to the filter in which you call Update().</div><div><br></div><div>Typically, you call Update() in the last filter of the pipeline,</div>
<div>because in that way, you execute the full pipeline.</div><div><br></div><div>However, you can always call Update() in the intermediate</div><div>filter, and therefore execute the pipeline, only up to that</div><div>intermediate filter.</div>
<div><br></div><div>In the particular case of the reader that you asked,</div><div>the Update() method, triggers the actual reading of</div><div>the content of a file (usually an image), into memory,</div><div>typically to store it in an itk::Image instance.</div>
<div><br></div><div><br></div><div> Luis</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 9, 2014 at 4:05 PM, Simplicity Peace <span dir="ltr"><<a href="mailto:simplicitypeacescm@gmail.com" target="_blank">simplicitypeacescm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><br>I'm new to `ITK`. I just want to ask, what does `Update()` mean? For example, I found that I had to use it with an `ImageFileReader`. Why is that?<br>
<br>Thanks.<br></div>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>