<div dir="ltr">Hi Alex,<br><br>Please see line 79 of the itkDemonsRegistrationFilter.hxx:<br><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.hxx#L79">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.hxx#L79</a><br>
<br>  if ( this->GetSmoothDisplacementField() )<br>    {<br>    this->SmoothDisplacementField();<br>    }<br><br><br><div>it is at the end of the method: InitializeIteration(), in line 58<br><br><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.hxx#L58">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.hxx#L58</a><br>
<br><br>and it is called, at the beginning of the iteration.<br><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">On the other hand,</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Please see the method: SmoothUpdateField() in line 160</div><div class="gmail_extra"><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.hxx#L160">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.hxx#L160</a><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">called from ApplyUpdate() in line 154</div><div class="gmail_extra"><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.hxx#L154">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.hxx#L154</a><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">that is called from the super class itkFiniteDifferenceImageFilter in line 93</div><div class="gmail_extra"><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/FiniteDifference/include/itkFiniteDifferenceImageFilter.hxx#L93">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/FiniteDifference/include/itkFiniteDifferenceImageFilter.hxx#L93</a><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">which can be considered the "end" of the iteration driven by the "while" loop in line 85</div><div class="gmail_extra">
<a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/FiniteDifference/include/itkFiniteDifferenceImageFilter.hxx#L85">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/FiniteDifference/include/itkFiniteDifferenceImageFilter.hxx#L85</a><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"> Hope this helps,</div><div class="gmail_extra"><br></div><div class="gmail_extra">     Luis</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br><br></div></div></div>