eidelen / DicomToMesh

A command line tool to transform a DICOM volume into a 3d surface mesh (obj, stl or ply). Several mesh processing routines can be enabled, such as mesh reduction, smoothing or cleaning. Works on Linux, OSX and Windows.
MIT License
437 stars 91 forks source link

No mesh could be created. Wrong DICOM or wrong iso value #53

Open Lod3 opened 5 days ago

Lod3 commented 5 days ago

Hi, thank you for creating this project.

Dicom2Mesh Settings
-------------------
Input directory: /data
Output file path: ..\Downloads\Temp\rock_bitescan_lower_jaw_scan.stl
Surface segmentation: 557
Mesh reduction: disabled
Mesh polygon limitation: disabled
Mesh smoothing: disabled
Mesh centering: disabled
Mesh filtering: disabled
Volume cropping: disabled

Using standard DICOM loader
Read DICOM images located under /data
ERROR: In /build/vtk6-VHOYAG/vtk6-6.3.0+dfsg1/IO/Image/vtkDICOMImageReader.cxx, line 143
vtkDICOMImageReader (0x55a6e7fbb000): Couldn't open /data

Progress: 0.0%ERROR: In /build/vtk6-VHOYAG/vtk6-6.3.0+dfsg1/IO/Image/vtkDICOMImageReader.cxx, line 243
vtkDICOMImageReader (0x55a6e7fbb000): Either a filename was not specified or the specified directory does not contain any DICOM images.

Progress: doneERROR: In /build/vtk6-VHOYAG/vtk6-6.3.0+dfsg1/Common/ExecutionModel/vtkExecutive.cxx, line 784
vtkCompositeDataPipeline (0x55a6e7fbc740): Algorithm vtkDICOMImageReader(0x55a6e7fbb000) returned failure for request: vtkInformation (0x55a6e7fc19f0)
  Debug: Off
  Modified Time: 149
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0

Create surface mesh with iso value = 557
Progress: doneERROR: In /build/vtk6-VHOYAG/vtk6-6.3.0+dfsg1/Filters/Core/vtkMarchingCubes.cxx, line 417
vtkMarchingCubes (0x55a6e7fba5e0): Cannot contour data of dimension != 3

No mesh could be created. Wrong DICOM or wrong iso value

I am using windows

This is the DCM file I am trying to convert to STL

Scans_rock_LowerJawScan.zip The file is what I received from a colleague to test if we could convert into a more conventional 3D file format like STL, X3D or OBJ I tried this project for STL. Any help is welcome for X3D or OBJ.
Thank you

eidelen commented 5 days ago

Hi, I couldn't open your file neither. Even by using VTK9 with the extended Dicom Reader library. It says it is empty. I also tried it with the application ITK-Snap (btw - great tool with an UI and advanced segmentation features)... I cannot even read it with that. As it is only 9MB, could it be possibly empty? Do you have some more information? Thank you, Adrian