[Insight-developers] function signature

Bill Lorensen bill.lorensen at gmail.com
Thu Sep 15 12:40:24 EDT 2011


Let's make sure we don't have another disaster like we did with
ThreadIdType...

On Thu, Sep 15, 2011 at 12:23 PM, Luis Ibanez <luis.ibanez at kitware.com>wrote:

> Yeap, good point.
>
> With the new displacement transform we should
> anticipate that the number of parameters can be
> as high as the number of pixels in an image.
>
> As you pointed out, the type should match the
> one defined in the Transforms.
>
>     Luis
>
> ----------------------------------
> On Thu, Sep 15, 2011 at 9:16 AM,  <M.Staring at lumc.nl> wrote:
> > Hi developers,
> >
> > I think the signature of GetNumberOfParameters  in should change from
> >
> > /** Return the number of parameters required by the Transform */
> >  unsigned int GetNumberOfParameters(void) const
> >  {
> >    return m_Transform->GetNumberOfParameters();
> >  }
> >
> > to
> >
> > /** Return the number of parameters required by the Transform */
> >  NumberOfParametersType GetNumberOfParameters(void) const
> >  {
> >    return m_Transform->GetNumberOfParameters();
> >  }
> >
> > probably with
> >
> > typedef typename TransformType::NumberOfParametersType
> NumberOfParametersType;
> >
> > to reflect the changes in the Transform classes.
> >
> > Regards,
> >
> > Marius
> >
> > Marius Staring, PhD
> > Division of Image Processing (LKEB)
> > Department of Radiology
> > Leiden University Medical Center
> > PO Box 9600, 2300 RC Leiden, The Netherlands
> > phone: +31 (0)71 526 2137, fax: +31 (0)71 524 8256 m.staring at lumc.nl
> >
> > _______________________________________________
> > 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.html
> >
> > 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
> >
> _______________________________________________
> 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.html
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110915/84d9f2bd/attachment.htm>


More information about the Insight-developers mailing list