Open chuanqiWen opened 1 year ago
Hi, could you give us the code you use and the error you get ?
This filter is called MedialThicknessImageFilter3D
not MedicalThicknessImageFilter3D
and it is directly accessible at itk
-level...
Have you tried the code sample given in the README ?
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)
I have tried the code sample given in the README, and got the same error.
Traceback (most recent call last):
File "itk_sctipt.py", line 8, in
Then you will have to investigate your python / conda versions and installations ...
The following samples will reproduce a minimal test case that should work on any platform (with conda ofc)
conda create --name dummy
conda activate dummy
python -m pip install itk itk-thickness3d
python -c "from itk import MedialThicknessImageFilter3D"
Why I have installed itk and itk-thickness3d, but can't find MedicalThicknessImageFilter3D?