Hi Nick and Brian, <div>Thanks for the clarification.<div>Maybe at least we could plug in a cast filter inside the optimizer  to internally use double, instead of requiring the input image types to be double? </div><div><br>
</div><div>-Xiaoxiao<br><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 10:59 AM, brian avants <span dir="ltr">&lt;<a href="mailto:stnava@gmail.com" target="_blank">stnava@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi nick , xiaoxiao<br>
<br>
it&#39;s the optimization framework that forced this - michael stauffer<br>
did a pass through rewriting the optimization framework with a<br>
template parameter but this was nixed in one of the developer<br>
meetings.<br>
<br>
agree that it&#39;s not ideal --- however, upside is that solutions should<br>
be more stable/precise, to state the obvious.<br>
<br>
b<br>
<br>
brian<br>
<div><div class="h5"><br>
<br>
<br>
<br>
On Thu, Jan 17, 2013 at 10:55 AM, Nicholas Tustison &lt;<a href="mailto:ntustison@gmail.com">ntustison@gmail.com</a>&gt; wrote:<br>
&gt; Yeah, this is a legacy issue that we need to address but I don&#39;t know how<br>
&gt; easy it&#39;s going to be.  It&#39;s due to the fact that the transform framework<br>
&gt; requires<br>
&gt; double type which predates our work.  Brian, Michael and I will have to<br>
&gt; discuss this to see if we can fix it or at least minimize the places where<br>
&gt; double<br>
&gt; is required.<br>
&gt;<br>
&gt; Nick<br>
&gt;<br>
&gt;<br>
&gt; On Jan 17, 2013, at 10:50 AM, Xiaoxiao Liu &lt;<a href="mailto:xiaoxiao.liu@kitware.com">xiaoxiao.liu@kitware.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Nick,<br>
&gt;    With the recent changes in the RegistrationMetricv4, seems that the<br>
&gt; PixeType of an image needs to be always set to double?<br>
&gt;    Old registration code  that with float type fails to compile, but runs<br>
&gt; fine with double :<br>
&gt; <a href="https://github.com/InsightSoftwareConsortium/ITKv4-TheNextGeneration-Tutorial/commit/20df5ac66d43061b5d1ca3665dd1712a5986a879" target="_blank">https://github.com/InsightSoftwareConsortium/ITKv4-TheNextGeneration-Tutorial/commit/20df5ac66d43061b5d1ca3665dd1712a5986a879</a><br>

&gt;    The internal parameter measurements are using double, but is there a<br>
&gt; reason to require the image type to be double as well? Am I missing<br>
&gt; something?<br>
&gt;    Please give me some pointers. Thanks.<br>
&gt;<br>
&gt; -- Xiaoxiao<br>
&gt;<br>
&gt;<br>
&gt; ---------------------------------------------<br>
&gt; Xiaoxiao Liu, Ph.D.<br>
&gt; R &amp; D Engineer<br>
&gt; Kitware Inc.<br>
&gt; Clifton Park, NY<br>
&gt; Phone: <a href="tel:%28518%29%20881-4924" value="+15188814924">(518) 881-4924</a>  or  <a href="tel:%28518%29%20371-3971%20x124" value="+15183713971">(518) 371-3971 x124</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
&gt;<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div><br></div>---------------------------------------------<br><b>Xiaoxiao Liu</b>, Ph.D.<div><div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">R &amp; D Engineer</span></font></div>
<div><div><a href="http://www.kitware.com/" target="_blank">Kitware Inc</a>.</div></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Clifton Park, NY</span><div><div>Phone: (518) 881-4924  or  <span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">(518) 371-3971 x124</span></div>
<div><font face="Verdana, Arial, Helvetica, sans-serif"><span style="line-height:31px;font-size:x-small"><br></span></font></div></div></div></div></div>
</div></div>