<font class="Apple-style-span" face="verdana, sans-serif">Hi All,</font><div><font class="Apple-style-span" face="verdana, sans-serif">I am registering CT and MRI of the brain with Bspline Transformation, Mattes-MI, </font><span class="Apple-style-span" style="font-size: 11px; "><font class="Apple-style-span" face="verdana, sans-serif">RegularStepGradientDescentOptimizer.</font></span></div>
<div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif">The registration works fine.</font></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif"><br>
</font></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif">But when I set:</font></span></font></div>
<div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif"><br></font></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo">
<span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="verdana, sans-serif">        </font></span><font class="Apple-style-span" face="verdana, sans-serif">spatialObjectMask->SetImage( maskReader->GetOutput() );</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo"><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="verdana, sans-serif">        </font></span><font class="Apple-style-span" face="verdana, sans-serif">metric->SetFixedImageMask( spatialObjectMask);</font></p>
<div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif">The Registration ends with 0 iteration and I get this message:</font></span></font></div>
<div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif"><br></font></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif">Optimizer stop condition = RegularStepGradientDescentOptimizer: Gradient magnitude tolerance met after 0 iterations. Gradient magnitude (0) is less than gradient magnitude tolerance (0.001).</font></span></font></div>
<div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif"><br></font></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif">My mask is a binary image (0,255). Is it wrong?</font></span></font></div>
<div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif">How can I register using a mask for Fixed Image?</font></span></font></div>
<div><span class="Apple-style-span" style="font-size: 11px; "><font class="Apple-style-span" face="verdana, sans-serif">any idea?</font></span></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif"><br>
</font></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif">Thank you very much.</font></span></font></div>
<div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif"><br></font></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="verdana, sans-serif">Serena.</font></span></font></div>