<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div>Thanks Luis!</div>
<div><br>
</div>
<div>-Alex </div>
<div><br>
On Mar 21, 2014, at 11:36 AM, "Luis Ibanez" <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<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>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_____________________________________</span><br>
<span>Powered by <a href="http://www.kitware.com">www.kitware.com</a></span><br>
<span></span><br>
<span>Visit other Kitware open-source projects at</span><br>
<span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>
<span></span><br>
<span>Kitware offers ITK Training Courses, for more information visit:</span><br>
<span><a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a></span><br>
<span></span><br>
<span>Please keep messages on-topic and check the ITK FAQ at:</span><br>
<span><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>
<span></span><br>
<span>Follow this link to subscribe/unsubscribe:</span><br>
<span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br>
</div>
</blockquote>
</body>
</html>