-
Notifications
You must be signed in to change notification settings - Fork 13
Description
(leo) PS C:\Users\BME> morphman-bifurcation --ifile leo\sn.vtp --ofile leo\anglesn.vtp --angle 80 --region-of-interest manual --poly-ball-size 250 250 250
WARNING: Tried to automagically uncapp the input surface. Uncapped 2 inlet/outlets in total. If this number if incorrect please provide an uncapped surface as input, use the clipp_capped_surface method, or vmtksurfaceendclipper.
-- Please select the two relevant outlets in the interactive window.
Quit renderer
-- Region of interest is defined by the region points:
Outlet 1: [104.76170349121094, 129.65249633789062, 123.28350067138672]
Outlet 2: [109.22720336914062, 127.46739959716797, 127.22319793701172]
Cleaning surface.
Triangulating surface.
Computing centerlines.
Computing centerlines...Cleaning surface.
Triangulating surface.
Computing centerlines.
Computing centerlines...Cleaning surface.
Triangulating surface.
Computing centerlines.
Computing centerlines...-- Computing voronoi diagram.
-- Clipping centerlines.
-- Clipping Voronoi diagram
-- Rotating centerlines and voronoi diagram.
C:\Users\BME.conda\envs\leo\Lib\site-packages\numpy_core\fromnumeric.py:3860: RuntimeWarning: Mean of empty slice.
return _methods._mean(a, axis=axis, dtype=dtype,
C:\Users\BME.conda\envs\leo\Lib\site-packages\numpy_core_methods.py:145: RuntimeWarning: invalid value encountered in scalar divide
ret = ret.dtype.type(ret / rcount)
-- Interpolating centerlines.
Traceback (most recent call last):
File "C:\Users\BME.conda\envs\leo\Scripts\morphman-bifurcation-script.py", line 9, in
sys.exit(main_bifurcation())
^^^^^^^^^^^^^^^^^^
File "C:\Users\BME.conda\envs\leo\Lib\site-packages\morphman\manipulate_bifurcation.py", line 654, in main_bifurcation
manipulate_bifurcation(**read_command_line_bifurcation())
File "C:\Users\BME.conda\envs\leo\Lib\site-packages\morphman\manipulate_bifurcation.py", line 174, in manipulate_bifurcation
interpolated_cl = interpolate_patch_centerlines(rotated_cl, centerline_par,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BME.conda\envs\leo\Lib\site-packages\morphman\common\vessel_reconstruction_tools.py", line 222, in interpolate_patch_centerlines
splinePoints = interpolate_spline(startingCell, endingCell, additionalPoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BME.conda\envs\leo\Lib\site-packages\morphman\common\vessel_reconstruction_tools.py", line 277, in interpolate_spline
points.append(get_startCell.GetPoint(num_start - n * i - 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: expects 0 <= id && id < GetNumberOfPoints()
How I solve this error?