[Insight-users] How to instantiate PointsContainer alt suitable VectorContainer in WrapITK-Python?

Carlos Moro cfmoro at gmail.com
Thu Jul 16 18:46:20 EDT 2009


Hi all.

I would like to instantiate a PointsContainer for a static PointSet. There
seems to be no such class in Python wrapping, but according
to the documentation, it wraps as VectorContainer templated over the
PointType.

dim = 3
pixelType = itk.D

pointType = itk.Point[itk.D , dim]
container = itk.VectorContainer[pointType]()

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    cont = itk.VectorContainer[pointType]()
  File "/usr/lib/WrapITK/Python/itkTemplate.py", line 215, in __getitem__
    raise KeyError, 'itkTemplate : No template %s for the %s class' %
(str(parameters), self.__name__)
KeyError: "itkTemplate : No template [<class 'itkPoint.itkPointD3'>] for the
itk::VectorContainer class"

How can such container be instantiated?

Best regards,
Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090717/618f2a68/attachment.htm>


More information about the Insight-users mailing list