Coder Social home page Coder Social logo

Wrong dicom error about dicomtomesh HOT 10 CLOSED

eidelen avatar eidelen commented on August 23, 2024
Wrong dicom error

from dicomtomesh.

Comments (10)

drewp avatar drewp commented on August 23, 2024 1

#18 (comment) 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)

from dicomtomesh.

eidelen avatar eidelen commented on August 23, 2024

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 #14 (comment)
  • Uncompress the files using tools, such as dcmtk

from dicomtomesh.

IgorDePaula avatar IgorDePaula commented on August 23, 2024

I got error on build vtk-dicom (#14 (comment)):

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.

from dicomtomesh.

IgorDePaula avatar IgorDePaula commented on August 23, 2024

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

from dicomtomesh.

eidelen avatar eidelen commented on August 23, 2024

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

from dicomtomesh.

IgorDePaula avatar IgorDePaula commented on August 23, 2024

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

from dicomtomesh.

IgorDePaula avatar IgorDePaula commented on August 23, 2024

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

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

from dicomtomesh.

IgorDePaula avatar IgorDePaula commented on August 23, 2024

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

from dicomtomesh.

cogitas3d avatar cogitas3d commented on August 23, 2024

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

from dicomtomesh.

eidelen avatar eidelen commented on August 23, 2024

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

from dicomtomesh.

Related Issues (20)

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.