Comments (7)
It doesn't look like it's finding the type vtk.VTK_UNSIGNED_CHAR from the vtk package. What version of vtkpython are you using?
from dicom2stl.
Have solved the problem. Actually i was not able to get proper vtk . Then i installed anaconda python . and used pip install vtk as it has its own vtk.
from dicom2stl.
But now i have issue with the bone ,tissues , etc. extraction
Not able to use: vtkpython dicom2stl.py -t bone -o bone.stl dicom.zip
in place of vtkpython i am using vtk.
But again and again : 'vtk' is not recognized as an internal or external command,
operable program or batch file. i have also set the vtk in environmental variables.
To extract the bone from a zip of dicom images:
vtkpython dicom2stl.py -t bone -o bone.stl dicom.zip
To extract the skin from a NRRD volume:
vtkpython dicom2stl.py -t skin -o skin.stl volume.nrrd
To extract a specific iso-value from a VTK volume:
vtkpython dicom2stl.py -t 128 -o iso.stl volume.vtk
To extract soft tissue from a dicom series in directory and
apply a 180 degree Y axis rotation:
vtkpython dicom2stl.py --enable rotation -t soft_tissue -o soft.stl dicom_dir
and is bone.stl , skin.stl, iso.stl, soft.stl gone be created in the file?
and how to solve this :'vtk' is not recognized as an internal or external command,
operable program or batch file. i have also set the vtk in environmental variables.
from dicom2stl.
I am using vtk 8.1 which is available through anaconda3
from dicom2stl.
Sir thank you so much for such a brilliant file. Solved the problem related to vtkpython by installing through conda install -c anaconda vtk then doing pip install vtk.
But sir how can we change the smoothness through command line?
from dicom2stl.
Now i am able to get bone, skin, iso, softtsissues. But sir how can we change the smoothness through command line?
from dicom2stl.
I can add a smoothness parameter to the command line.
Update: I've added a '--smooth' command line options to allow you to set the number of iterations of the Laplacian smoothing filter applied to the extracted mesh.
from dicom2stl.
Related Issues (19)
- Dicom to stl Conversion HOT 6
- thresholding value for clothing and patient bed removal HOT 3
- Threshold value HOT 12
- Segmentation Fault HOT 1
- The output STL file is in the shape of a box HOT 3
- how to solve this error? HOT 2
- Program stuck at decimation step HOT 1
- Small filter Issue HOT 2
- TypeError: cannot unpack non-iterable NoneType object HOT 5
- Comparing physical sizes of different generated meshes HOT 9
- Sample .DCM files available? (Does not work on my .DCM files) HOT 6
- What is the threshold? HOT 6
- Suggest: use machine learning to get more precise segmentation HOT 1
- server side ? HOT 2
- can I run this .py file in my gui.py?
- How to get an unsegmented 3D model
- 'vtkpython' is not recognized as an internal or external command, operable program or batch file. HOT 1
- 'loadLargestSeries' is not defined HOT 5
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 dicom2stl.