Giter VIP home page Giter VIP logo

Comments (7)

dave3d avatar dave3d commented on May 27, 2024

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.

Sachingit1389 avatar Sachingit1389 commented on May 27, 2024

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.

Sachingit1389 avatar Sachingit1389 commented on May 27, 2024

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.

Sachingit1389 avatar Sachingit1389 commented on May 27, 2024

I am using vtk 8.1 which is available through anaconda3

from dicom2stl.

Sachingit1389 avatar Sachingit1389 commented on May 27, 2024

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.

Sachingit1389 avatar Sachingit1389 commented on May 27, 2024

Now i am able to get bone, skin, iso, softtsissues. But sir how can we change the smoothness through command line?

from dicom2stl.

dave3d avatar dave3d commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.