Skip to content

Bifurcation angle #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mdsiamahmed26 opened this issue Jan 27, 2025 · 0 comments
Open

Bifurcation angle #88

mdsiamahmed26 opened this issue Jan 27, 2025 · 0 comments

Comments

@mdsiamahmed26
Copy link

(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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant