I have tried to call the function which is vessel centerline function ‘SpeedFunctionToPathFilter()’ with itk python interfaces, but dump error occurred when it was called.
Would you mind to tell how correct or detour it?
My installation steps is below, it comes from https://blog.kitware.com/python-package-to-find-vessel-or-tube-centerlines/
install itk 5.0rc2 with pip
pip install --pre itk
install itk-minimalpathextraction with pip
pip install itk-minimalpathextraction
import itk PixelType = itk.ctype('float') Dimension = 2 ImageType = itk.Image[PixelType, Dimension] PathType = itk.PolyLineParametricPath[Dimension] PathFilterType = itk.SpeedFunctionToPathFilter[ImageType, PathType]
os: Ubuntu 18.04, python 3.6