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"><<a href="mailto:stnava@gmail.com" target="_blank">stnava@gmail.com</a>></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'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'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 <<a href="mailto:ntustison@gmail.com">ntustison@gmail.com</a>> wrote:<br>
> Yeah, this is a legacy issue that we need to address but I don't know how<br>
> easy it's going to be. It's due to the fact that the transform framework<br>
> requires<br>
> double type which predates our work. Brian, Michael and I will have to<br>
> discuss this to see if we can fix it or at least minimize the places where<br>
> double<br>
> is required.<br>
><br>
> Nick<br>
><br>
><br>
> On Jan 17, 2013, at 10:50 AM, Xiaoxiao Liu <<a href="mailto:xiaoxiao.liu@kitware.com">xiaoxiao.liu@kitware.com</a>> wrote:<br>
><br>
> Hi Nick,<br>
> With the recent changes in the RegistrationMetricv4, seems that the<br>
> PixeType of an image needs to be always set to double?<br>
> Old registration code that with float type fails to compile, but runs<br>
> fine with double :<br>
> <a href="https://github.com/InsightSoftwareConsortium/ITKv4-TheNextGeneration-Tutorial/commit/20df5ac66d43061b5d1ca3665dd1712a5986a879" target="_blank">https://github.com/InsightSoftwareConsortium/ITKv4-TheNextGeneration-Tutorial/commit/20df5ac66d43061b5d1ca3665dd1712a5986a879</a><br>
> The internal parameter measurements are using double, but is there a<br>
> reason to require the image type to be double as well? Am I missing<br>
> something?<br>
> Please give me some pointers. Thanks.<br>
><br>
> -- Xiaoxiao<br>
><br>
><br>
> ---------------------------------------------<br>
> Xiaoxiao Liu, Ph.D.<br>
> R & D Engineer<br>
> Kitware Inc.<br>
> Clifton Park, NY<br>
> 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>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
><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 & 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>