python example for point set not working with itk 5.0.1

asertyuio
Wed, 21 Aug 2019 12:29:07 +0000
Beginner Questions

I’m trying to create a point set and I followed the python example here, but there is some “type errors” :

itkTemplate.TemplateTypeError: itk.PointSet is not wrapped for input type `itk.F, int, itk.DefaultStaticMeshTraits[itk.F,2]

I manage to get a working piece of code for creating a meshtrait:

PixelType = itk.F
Dimension = 2

MeshTraits = itk.DefaultStaticMeshTraits[PixelType, Dimension, Dimension]

PointSetType = itk.PointSet[PixelType, Dimension, MeshTraits]

I changed the MeshTraits grid to:

MeshTraits = itk.DefaultStaticMeshTraits[PixelType, Dimension]
PointSetType = itk.PointSet[PixelType, Dimension]

I guess the documentation is wrong on this point compared to what is compiled.

Am I doing right ?

2 posts - 2 participants