1

I've managed to compile GDCM with VTK and I have a particular application I would like to use, which is the "gdcm2vtk.exe".

Now, how's the syntax for converting a stack of imags into a ".vti" file? so far I have this:

gdcm2vtk Input_Directory file.vti

Now, when I run somthing like this: gdcm2vtk "C:/dicom/dicom directory" output.vti I get an error: could not find no reader to handle file: "C:/dicom/dicom directory"

Is there anything I'm missing there?

BradleyDotNET
  • 60,462
  • 10
  • 96
  • 117
Matimont
  • 739
  • 3
  • 14
  • 33
  • possible duplicate of [gdcmimg to convert stack of DICOM images into a vti file?](http://stackoverflow.com/questions/20367002/gdcmimg-to-convert-stack-of-dicom-images-into-a-vti-file) – malat Dec 30 '13 at 08:52

1 Answers1

0

gdcm2vtk does not handle a directory as input as specified in the documentation.

You may want to convert your DICOM Series into a single DICOM Instance using gdcmimg


As of GDCM 2.6 gdcm2vtk is now able to take as input a directory. Pay attention to sort the file according to the well known Image Orientation (Patient) & Image Position (Patient) strategy instead of relying on the filenames ordering to reconstruct your VTK (*.vti) file:

$ gdcm2vtk --ipp-sort input_dir output.vti
malat
  • 12,152
  • 13
  • 89
  • 158
  • Thanks for this info. Now, if I convert my Series into a single DICOM Instance, will I be able to render it as 3D? – Matimont Dec 30 '13 at 13:00