[vtkusers] vtkPointCloudFilter GetPointMap
Jakob Jungfels
jakob.jungfels at stud.hs-hannover.de
Mon Aug 6 16:01:33 EDT 2018
Hey folks,
I hope this is the correct place for this question:
I am using VTK 7.1.1 in Python to create 3D models from DICOM files and
perform some operations on the models. Currently my goal is to use the
vtkPointCloudFilter classes, mainly vtkRadiusOutlierRemoval and
vtkStatisticalOutlierRemoval, to remove outlier points from my data.
Now, the problem is, that I want to use the GetPointMap function.
Unfortunately, while the algorithm works fine, the GetPointMap function
does not. The result I am getting is a string, always looking similar to
this "_000000004d6b5040_p_void". Some example code that I am using:
outliersRemoval = vtk.vtkRadiusOutlierRemoval()
outliersRemoval.SetInputData(self.tmpPolyData)
outliersRemoval.SetRadius(1.0)
outliersRemoval.SetNumberOfNeighbors(10)
outliersRemoval.Update()
print("Removed Points:")
print(outliersRemoval.GetNumberOfPointsRemoved())
outliers = outliersRemoval.GetPointMap()
Can anyone help me with this?
Kind regards,
Jakob Jungfels
More information about the vtkusers
mailing list