<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Ema,</div><div class="gmail_quote"><br></div><div class="gmail_quote">After reading Brian's and Nick's answers to your more recent post,</div><div class="gmail_quote">
<br></div><div class="gmail_quote">I realized that I missed line 407:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/RegistrationMethodsv4/include/itkSyNImageRegistrationMethod.hxx#L407">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/RegistrationMethodsv4/include/itkSyNImageRegistrationMethod.hxx#L407</a><br>
</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:17.99715805053711px">
<div class="" id="LC404" style="padding-left:10px"> <span class="" style>RealType</span> <span class="" style>localNorm</span> <span class="" style="font-weight:bold">=</span> <span class="" style="color:rgb(0,153,153)">0</span><span class="" style>;</span></div>
<div class="" id="LC405" style="padding-left:10px"> <span class="" style="font-weight:bold">for</span><span class="" style>(</span> <span class="" style="color:rgb(68,85,136);font-weight:bold">unsigned</span> <span class="" style="color:rgb(68,85,136);font-weight:bold">int</span> <span class="" style>d</span> <span class="" style="font-weight:bold">=</span> <span class="" style="color:rgb(0,153,153)">0</span><span class="" style>;</span> <span class="" style>d</span> <span class="" style="font-weight:bold"><</span> <span class="" style>ImageDimension</span><span class="" style>;</span> <span class="" style>d</span><span class="" style="font-weight:bold">++</span> <span class="" style>)</span></div>
<div class="" id="LC406" style="padding-left:10px"> <span class="" style>{</span></div><div class="" id="LC407" style="padding-left:10px;background-color:rgb(255,255,204)"> <span class="" style>localNorm</span> <span class="" style="font-weight:bold">+=</span> <span class="" style>vnl_math_sqr</span><span class="" style>(</span> <span class="" style>vector</span><span class="" style>[</span><span class="" style>d</span><span class="" style>]</span> <span class="" style="font-weight:bold">/</span> <span class="" style>spacing</span><span class="" style>[</span><span class="" style>d</span><span class="" style>]</span> <span class="" style>);</span></div>
<div class="" id="LC408" style="padding-left:10px"> <span class="" style>}</span></div><div class="" id="LC409" style="padding-left:10px"> <span class="" style>localNorm</span> <span class="" style="font-weight:bold">=</span> <span class="" style>vcl_sqrt</span><span class="" style>(</span> <span class="" style>localNorm</span> <span class="" style>);</span></div>
<div class="" id="LC409" style="padding-left:10px"><span class="" style><br></span></div><div class="" id="LC409" style="padding-left:10px"><span class="" style><br></span></div><div class="" id="LC409" style="padding-left:10px">
<span class="" style><br></span></div></pre></div><div class="gmail_quote">Where the spacing of the image is already taken into account while</div><div class="gmail_quote">computing the norm.</div><div class="gmail_quote">
<br></div><div class="gmail_quote">So, </div><div class="gmail_quote">the LearningRate is indeed to be set as a ratio (not related to units), and</div><div class="gmail_quote">as Nick and Brian suggest, starting with something between 0.1 and 0.25. </div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"> My apologies for the confusion</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">
Luis</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div></div></div>