[Insight-developers] function signature

Luis Ibanez luis.ibanez at kitware.com
Thu Sep 15 12:23:58 EDT 2011


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
>


More information about the Insight-developers mailing list