[ITK] [ITK-users] Geodesic Shape Guidance in Python

Matt McCormick matt.mccormick at kitware.com
Wed Apr 27 10:23:28 EDT 2016


Hello Robert,

We will need to wrap std::vector for over itk::Image.


Please consider uploading your modification for code review:

  http://www.itk.org/Wiki/ITK/Git/Develop

The community can then more easily review the code, test it, and it
can be integrated into the toolkit so you can work with it in the
future and others can benefit from it.


As Tim suggested, resolving the typedef's determines what types of
objects need to be created in Python.  Another helpful tool is the
Doxygen documentation for the toolkit -- it contains links for the
class typedefs. If we go to the optimizer documentation:

  http://www.itk.org/Doxygen/html/classitk_1_1OnePlusOneEvolutionaryOptimizer.html

Then click the dropdown "Public Member Functions inherited from itk::Optimizer".
Then click the "ScalesType" link in "SetScales", it brings us to

  http://www.itk.org/Doxygen/html/classitk_1_1Optimizer.html#a4c2e8eb9d9390e0e2988e78ea094492a

which says the ScalesType are an itk::Array< double >


HTH,
Matt

On Wed, Apr 27, 2016 at 6:24 AM, Robert <scorpiuni at gmail.com> wrote:
> Hello,
>
> I tried the method with shapeModeImages = itk.vector[InternalImageType]().
> However, there is the following Error message:
> KeyError: "itkTemplate : No template [<class 'itkImagePython.itkImageF2'>]
> for the std::vector class"
>
> I can't put Images inside of an itk vector. Am I doing something wrong here?
>
>
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Geodesic-Shape-Guidance-in-Python-tp7588780p7588786.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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://www.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://public.kitware.com/mailman/listinfo/insight-users
_____________________________________
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://www.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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list