# I cannot use filter for calculation Hausdorff distance

**URL:** https://discourse.vtk.org/t/i-cannot-use-filter-for-calculation-hausdorff-distance/2339
**Category:** Support
**Created:** [December 26, 2019, 6:58am UTC](https://discourse.vtk.org/t/i-cannot-use-filter-for-calculation-hausdorff-distance/2339 "2019-12-26T06:58:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Inna\_Daymand](https://discourse.vtk.org/user_avatar/discourse.vtk.org/inna_daymand/32/1172_2.png) [@Inna\_Daymand](https://discourse.vtk.org/u/Inna_Daymand)
#### Post date: [December 26, 2019, 6:58am UTC](https://discourse.vtk.org/t/i-cannot-use-filter-for-calculation-hausdorff-distance/2339/1 "2019-12-26T06:58:28Z")

</div>

I have VTK 8.2.0 build

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

[https://lorensen.github.io/VTKExamples/site/Python/PolyData/AlignTwoPolyDatas/](https://lorensen.github.io/VTKExamples/site/Python/PolyData/AlignTwoPolyDatas/)

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!!!  
thanks

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [December 26, 2019, 9:27pm UTC](https://discourse.vtk.org/t/i-cannot-use-filter-for-calculation-hausdorff-distance/2339/2 "2019-12-26T21:27:25Z")

</div>

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

---

<div class="post-metadata">

### Author: ![hubutui](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hubutui/32/1481_2.png) [@hubutui](https://discourse.vtk.org/u/hubutui)
#### Post date: [March 12, 2020, 9:46am UTC](https://discourse.vtk.org/t/i-cannot-use-filter-for-calculation-hausdorff-distance/2339/3 "2020-03-12T09:46:55Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [March 13, 2020, 10:14am UTC](https://discourse.vtk.org/t/i-cannot-use-filter-for-calculation-hausdorff-distance/2339/4 "2020-03-13T10:14:16Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![hubutui](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hubutui/32/1481_2.png) [@hubutui](https://discourse.vtk.org/u/hubutui)
#### Post date: [March 13, 2020, 10:30am UTC](https://discourse.vtk.org/t/i-cannot-use-filter-for-calculation-hausdorff-distance/2339/5 "2020-03-13T10:30:24Z")

</div>

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