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->Update();<br> }<br> catch( itk::ExceptionObject & err )<br> {<br> std::cerr << "ExceptionObject caught !" << std::endl;<br>
std::cerr << err << 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 "closed for modification" is the ITK image registration module after the call to registration.update() with regard to the above details?<br>