DicomToMesh icon indicating copy to clipboard operation
DicomToMesh copied to clipboard

Wrong dicom error

Open IgorDePaula opened this issue 5 years ago • 9 comments

I try convert this dicom files https://www.dicomlibrary.com/?manage=1b9baeb16d2aeba13bed71045df1bc65 but the software says that file is wrong dicom.

Captura de tela de 2019-09-04 10-56-53

IgorDePaula avatar Sep 04 '19 13:09 IgorDePaula

These dicom files are compressed. With the dicom2mesh build from the ppa you cannot read compressed files. There are two ways:

  • Building Dicom2Mesh yourself by considering following issue https://github.com/AOT-AG/DicomToMesh/issues/14#issuecomment-443224034
  • Uncompress the files using tools, such as dcmtk

eidelen avatar Sep 04 '19 15:09 eidelen

I got error on build vtk-dicom (https://github.com/AOT-AG/DicomToMesh/issues/14#issuecomment-443224034):

By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "VTK", but
  CMake did not find one.

  Could not find a package configuration file provided by "VTK" with any of
  the following names:

    VTKConfig.cmake
    vtk-config.cmake

  Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
  to a directory containing one of the above files.  If "VTK" provides a
  separate development package or SDK, be sure it has been installed.

and I got install dcmtk but after install the system not recognize it, is like not are installed.

IgorDePaula avatar Sep 04 '19 16:09 IgorDePaula

Captura de tela de 2019-09-04 13-25-47 Captura de tela de 2019-09-04 13-25-37

IgorDePaula avatar Sep 04 '19 16:09 IgorDePaula

Good morning, There is no binary named dcmtk. What you are interested in is the command dcmjpeg. This came with dcmtk on your system. About the cmake error: You need to read the build instructions. In this case the VTK_DIR is not set. Please see this and that

eidelen avatar Sep 05 '19 06:09 eidelen

Waht I pretend is generate 3D object to render with javascript

IgorDePaula avatar Sep 05 '19 12:09 IgorDePaula

Yes, VTK_DIR was setted, but I thing that VTK is not installed correctly.

Captura de tela de 2019-09-05 09-36-00

IgorDePaula avatar Sep 05 '19 12:09 IgorDePaula

https://github.com/AOT-AG/DicomToMesh/issues/18#issuecomment-528225293 should say dcmdjpeg (not dcmjpeg).

Before:

dicom2mesh -i . -v

Read DICOM images located under .
ERROR: In /build/vtk7-d8SNZg/vtk7-7.1.1+dfsg1/IO/Image/vtkDICOMImageReader.cxx, line 105
vtkDICOMImageReader (0x55cb89114650): DICOMParser couldn't parse : ./conv

Progress: 0.0%ERROR: In /build/vtk7-d8SNZg/vtk7-7.1.1+dfsg1/IO/Image/vtkDICOMImageReader.cxx, line 333
vtkDICOMImageReader (0x55cb89114650): There was a problem retrieving data from: ./0196.dcm

ERROR: In /build/vtk7-d8SNZg/vtk7-7.1.1+dfsg1/Common/ExecutionModel/vtkExecutive.cxx, line 784
vtkCompositeDataPipeline (0x55cb891152f0): Algorithm vtkDICOMImageReader(0x55cb89114650) returned failure for request: vtkInformation (0x55cb89120710)

after:

apt install dcmtk
mkdir conv
for x (*.dcm)  { dcmdjpeg -v $x conv/$x }
cd conv
dicom2mesh -i . -v
(success)

drewp avatar Nov 07 '19 08:11 drewp

I tried, but the generated images are not able to open.

IgorDePaula avatar Nov 21 '19 20:11 IgorDePaula

@IgorDePaula try to open the CT-Scan on Slicer, export it like a DICOM and try it again. Usually works.

cogitas3d avatar Dec 07 '19 23:12 cogitas3d

@IgorDePaula I am closing this issue. Feel free to reopen it. Thx, Adrian

eidelen avatar May 28 '23 10:05 eidelen