Hi!<br><br>I'm trying to create a PointSet type with the following code:<br><br>import itk<br>pixelType = itk.US<br>dimension = 3<br>PointSetType = itk.PointSet[pixelType, dimension]<br><br>But I get the following error:<br>
<br>Traceback (most recent call last):<br> File "PointSet1.py", line 53, in <module><br> PointSetType = itk.PointSet[pixelType, dimension]<br> File "/usr/lib/WrapITK/Python/itkTemplate.py", line 215, in __getitem__<br>
raise KeyError, 'itkTemplate : No template %s for the %s class' % (str(parameters), self.__name__)<br>KeyError: 'itkTemplate : No template (<itkCType unsigned short>, 3) for the itk::PointSet class'<br>
<br>Looking at WrapITK/lib/itkPointSet.py, there are definitions like itkPointSetD3D:<br> def __repr__(self):<br> return "<C itk::PointSet<(double,3u,itk::DefaultDynamicMeshTraits<(double,3u,3u,double,float,double)>)> instance at %s>" % (self.this,)<br>
... but I can't figure out how to template them .<br><br>I'm using ubuntu + <a href="http://paulnovo.org">paulnovo.org</a> packages with WrapITK.<br><br>Best regards,<br>Carlos<br>