Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.02 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.02 KB

Convert DICOM-RT Structures to a PLY Point Cloud

This is a very simple utility to convert any structures found in a DICOM-RT data set to individual PLY files for subsequent surface meshing. This will dump a bunch of PLY files into the current directory:

python dicom2ply.py dicom_dir output_dir

Originally this code was written to quickly calculate descriptive statistics for each structure; some of this information is included in the PLY header.

The saved point clouds can be quite dense, so in some instances it is best to reduce the number of total points prior to meshing. Have a look at MeshLab for meshing and mesh refinement.

Dependencies

TODO's

  • convert into a proper Python module
  • tidy up the statistics calculations
  • remove hard coding of CT data file suffixes and prefixes