[vtkusers] Problem to read the Siemens DICOM series using VTK

chenjianyyzz chenjianyyzz at 163.com
Wed Jan 18 01:46:41 EST 2017


Hi, 

I try to read the attached DICOM image series which comes from Siemens CT
but failed, below is my code:
----------------------------------------------------
	vtkSmartPointer<vtkDICOMImageReader> DICOMReader =
vtkSmartPointer<vtkDICOMImageReader>::New();
	DICOMReader->SetDirectoryName( "****");    // fill with the image folder
	DICOMReader->Update();

	// Visualize
	vtkSmartPointer<vtkImageViewer2> imageViewer =
vtkSmartPointer<vtkImageViewer2>::New();
	imageViewer->SetInputConnection(DICOMReader->GetOutputPort());
	vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =
vtkSmartPointer<vtkRenderWindowInteractor>::New();
	imageViewer->SetupInteractor(renderWindowInteractor);
	imageViewer->SetSlice(4);
	imageViewer->Render();
	imageViewer->GetRenderer()->ResetCamera();
	renderWindowInteractor->Initialize();
	imageViewer->Render();
	renderWindowInteractor->Start();
----------------------------------------------------
the error message I got is: 
ERROR: In ..\..\..\VTK7.1\IO\Image\vtkDICOMImageReader.cxx, line 333
vtkDICOMImageReader (000001ABE55D5CC0): There was a problem retrieving data
from: C:\CJ\data\Caili_A/00156a00.dcm

ERROR: In ..\..\..\VTK7.1\Common\ExecutionModel\vtkExecutive.cxx, line 784
vtkCompositeDataPipeline (000001ABE55D7110): Algorithm
vtkDICOMImageReader(000001ABE55D5CC0) returned failure for request:
vtkInformation (000001ABE55DA160)
  Debug: Off
  Modified Time: 138
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
  FROM_OUTPUT_PORT: 0

does any body know how to read the attached DICOM series from Siemens CT?

Thanks
James Caili_A.7z <http://vtk.1045678.n5.nabble.com/file/n5741841/Caili_A.7z>  



--
View this message in context: http://vtk.1045678.n5.nabble.com/Problem-to-read-the-Siemens-DICOM-series-using-VTK-tp5741841.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list