[Insight-developers] image PixelType when using RegistrationMetricv4
Xiaoxiao Liu
xiaoxiao.liu at kitware.com
Thu Jan 17 11:07:27 EST 2013
Hi Nick and Brian,
Thanks for the clarification.
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?
-Xiaoxiao
On Thu, Jan 17, 2013 at 10:59 AM, brian avants <stnava at gmail.com> wrote:
> hi nick , xiaoxiao
>
> it's the optimization framework that forced this - michael stauffer
> did a pass through rewriting the optimization framework with a
> template parameter but this was nixed in one of the developer
> meetings.
>
> agree that it's not ideal --- however, upside is that solutions should
> be more stable/precise, to state the obvious.
>
> b
>
> brian
>
>
>
>
> On Thu, Jan 17, 2013 at 10:55 AM, Nicholas Tustison <ntustison at gmail.com>
> wrote:
> > Yeah, this is a legacy issue that we need to address but I don't know how
> > easy it's going to be. It's due to the fact that the transform framework
> > requires
> > double type which predates our work. Brian, Michael and I will have to
> > discuss this to see if we can fix it or at least minimize the places
> where
> > double
> > is required.
> >
> > Nick
> >
> >
> > On Jan 17, 2013, at 10:50 AM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com>
> wrote:
> >
> > Hi Nick,
> > With the recent changes in the RegistrationMetricv4, seems that the
> > PixeType of an image needs to be always set to double?
> > Old registration code that with float type fails to compile, but runs
> > fine with double :
> >
> https://github.com/InsightSoftwareConsortium/ITKv4-TheNextGeneration-Tutorial/commit/20df5ac66d43061b5d1ca3665dd1712a5986a879
> > The internal parameter measurements are using double, but is there a
> > reason to require the image type to be double as well? Am I missing
> > something?
> > Please give me some pointers. Thanks.
> >
> > -- Xiaoxiao
> >
> >
> > ---------------------------------------------
> > Xiaoxiao Liu, Ph.D.
> > R & D Engineer
> > Kitware Inc.
> > Clifton Park, NY
> > Phone: (518) 881-4924 or (518) 371-3971 x124
> >
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-developers
> >
>
--
---------------------------------------------
*Xiaoxiao Liu*, Ph.D.
R & D Engineer
Kitware Inc <http://www.kitware.com/>.
Clifton Park, NY
Phone: (518) 881-4924 or (518) 371-3971 x124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20130117/bbbeed29/attachment.htm>
More information about the Insight-developers
mailing list