I cannot use filter for calculation Hausdorff distance

I have VTK 8.2.0 build

I want to use vtkHausdorffDistancePointSetFilter filter in my python program according to example


but I am getting error message

distance = vtk.vtkHausdorffDistancePointSetFilter()
AttributeError: module ‘vtkmodules.all’ has no attribute ‘vtkHausdorffDistancePointSetFilter’

and I really cannot find this filter in my VTK build.

Help me please!!!

This filter is only in the VTK master and will be in VTK 9.0 when released. It is not in VTK 8.2.

When will vtk 9.0 be released? May I ask how could I install the nightly build? I only use python binding. I don’t see a nightly build in pypi or anaconda.

VTK 9.0 has not been released yet, however you could build the master with the Python bindings i.e. specify Python in the build and use vtkpython or a GUI like PyCharm.

OK, I have build vtk from source for ArchLinux, it’s a touch job.