Issues with the deprecation of vtkImageThreshold

The first issue is that vtkImageBinaryThreshold does not seem to be wrapped in Python. I would expect it to be in vtkmodules.vtkImagingCore like the deprecated vtkImageThreshold.

The second issue relates to HybridMedianComparision.cxx. See the current code with the image here HybridMedianComparison.

If we use vtkImageBinaryThreshold we get this image where there seems to be no noise:

Here is the code I used:
HybridMedianComparison.cxx (8.1 KB)

I don’t know what I am missing here. Line 27, if uncommented, uses vtkImageThreshold.h instead of vtkImageBinaryThreshold.