Comments (9)
Hello @SMSadat98,
Thanks for reporting the issue. This may have been a previously known issue, which we have fixed in later versions of morphMan. So my immediate suggestion would be to upgrade to the latest version (v1.2).
Alternatively, if you share the .vtp-model with me and the command you are running I can have a look myself.
Best regards,
Henrik
from morphman.
Hello @hkjeldsberg
Thank you very much for the early response.
A bit of a mistake on my end: I did not specify the values of alpha and beta properly at first. However, the problems I am facing now are:
- The vertical bend (alpha) works fine, up to the value 0.6. any more than results in an error.
- The horizontal bend (beta) did not work at all for me and showed mostly "centerline_operations.py:133: RuntimeWarning: invalid value encountered in power" error.
How may I share the .vtp model?
Also, I have attached a picture marking the regions I am trying to modify.
Best Regards,
Sadat
Script:
from morphman import manipulate_bend, read_command_line_bend
Set input and output paths
id_name = ""
input_filepath = "C:\Users\user\Desktop\Morphman\"+id_name+"\"+id_name+".vtp"
output_filepath = "C:\Users\user\Desktop\Morphman\"+id_name+"\"+id_name+"bend.vtp"
Get default values for manipulate_bend
default_values = read_command_line_bend(input_filepath, output_filepath)
Set region of interest
default_values["region_of_interest"] = "manual"
default_values["region_points"] = []
Method specific parameters
default_values["alpha"] = 0
default_values["beta"] = 0.4
Parameters for reconstructing the surface
default_values["poly_ball_size"] = [50, 50, 50]
Run manipulation
manipulate_bend(**default_values)
from morphman.
Hi @SMSadat98 ,
I see, and thanks for supplying the command line arguments!
You can send the model to [email protected], and I can have a look.
Best regards,
Henrik
from morphman.
Hello @hkjeldsberg
I have sent the .vtp model.
Best regards,
Sadat
from morphman.
Hello @hkjeldsberg
I was trying to update to morphman v1.2. I have all the dependencies with the correct versions as per morphman documentation.
but while importing morphman, I get the error:
ImportError: DLL load failed while importing vtkvmtkSegmentationPython: The specified module could not be found.
I have tried several proposed solutions such as reinstalling packages properly, reinstalling c++ redistributable. I have also tried to add the directory containing the vtkvmtkSegmentationPython.pyd file to system path (sys.path.append()). None of them work.
Any suggestions?
Best regards,
Sadat
from morphman.
Hello @SMSadat98 ,
I investigated your initial issue, and made a hotfix for it under #70. It will be merged to master as soon as the tests pass.
Running your command using the fix resulted in the following manipulated model (shown in red).
The recent error you discovered seems to be related to Windows installation, and this is something I am currently investigating. I'll ping you as soon as I have an explanation for this.
Best regards,
Henrik
from morphman.
Hello again @SMSadat98 ,
I discovered that people are having the similar issue as you, but without any immediate fix. So i would suggest one of two things:
- Follow the suggestions in this thread: https://bytemeta.vip/repo/vmtk/vmtk/issues/379
or
- Comment out the following lines inside
M:\.conda\envs\your_environment\lib\site-packages\vmtk\vtkvmtk.py
(edit the path to your conda installation):
from .vtkvmtkSegmentationPython import *
from .vtkvmtkITKPython import *
morphMan does not depend upon them, and they seem to be causing the trouble. The second optioned worked fine for me, and I was able to import morphMan without any issues.
Best regards,
Henrik
from morphman.
Hello @hkjeldsberg
Regarding the installation of morphman 1.2, the second method worked perfectly. Thank you very much!
Hopefully the hotfix to manipulate bend gets merged soon!
For issues regarding bifurcation, should I post a new issue or should I continue here?
Best Regards,
Sadat
from morphman.
Hi @SMSadat98 ,
That's great to hear!
I actually already merged it to the master branch now, so if you are working on the development version of morphMan, just pull the latest changes and it should be fixed!
For any new issues, we should probably start a new thread. So I'll be closing this one for now.
Best,
Henrik
from morphman.
Related Issues (20)
- Add new vector for rotation in manipulate_branch HOT 1
- A more advanced manipulate_branch
- Add option to input a user defined array for branchextraction in maniupulate_branch HOT 1
- Manipulate bifurcation - Separate amount of rotation
- Manipulate bend & curvature - Preserve the curvilinear length of the vessel
- Automated detection of relevant outlets HOT 4
- vmtkcenterlines error when running aneurysm removal demo HOT 2
- Error using Manipulate Area on geometry with multiple inlets and outlets HOT 3
- TypeError: SetNumberOfComponents argument 1: an integer is required (got type vtkCommonDataModelPython.vtkPolyData) HOT 2
- pip install gives UnicodeDecodeError: 'ascii' codec can't decode byte HOT 1
- Manipulate Bifurcation: vtkMassProperties error and ValueError HOT 7
- Extension/Reduction of a vascular segment HOT 2
- Issue with running Manipulate Branch tutorial HOT 1
- Manipulate aneurysm sac geometry
- Deflation of an area of interest HOT 5
- Surface changes outside of ROIs HOT 1
- TypeError in estimate_alpha_and_beta HOT 1
- Inducing bend in straight vascular segment
- A value error when using morphman-area HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morphman.