I know I might have asked this before, but I have tried to be more precise in this post.<br><br>Is it possible to write a function that gets executed in each iteration AFTER the call to:<br><br>    int start(){<br>        try<br>
        {<br>            registration-&gt;Update();<br>        }<br>        catch( itk::ExceptionObject &amp; err )<br>        {<br>            std::cerr &lt;&lt; &quot;ExceptionObject caught !&quot; &lt;&lt; std::endl;<br>
            std::cerr &lt;&lt; err &lt;&lt; std::endl;<br>            return -1;<br>        }<br>    }<br><br>I would like this function to maybe modify the values of the cost function and maybe add more control points to the B-spline grid when doing Deformable transformations.<br>
<br>But is it even possible to do this after the call to update()? The only thing that I found that gives some feedback in each iteration is the different observers. How &quot;closed for modification&quot; is the ITK image registration module after the call to registration.update() with regard to the above details?<br>