python -m pip install itk-thickness3d could install this module, right? However, the implementation is:
import itk
input_filename = sys.argv[1]
output_filename = sys.argv[2]
image = itk.imread(input_filename)
thickness_map = itk.MedialThicknessImageFilter3D.New(image)
itk.imwrite(thickness_map, output_filename)
The above script only import itk, instead of itk-thickness3d. So I have two questions:
- Can I use the function
itk.MedialThicknessImageFilter3D if I only import itk?
- Why I installed
itk-thickness3d but I do not need to use it?