[vtk-developers] Read DICOM file into vtkImageData

trmcami trmcami at gmail.com
Sat May 4 23:03:39 EDT 2013


Hi. I'm new to VTK. I need to read a DICOM file into OpenCV, I was able to
find the code to convert a vtkImageData to a IplImage but I don't know how
to transform a DICOM image that I'm reading from a file into a vtkImageData.

I'm reading it like this

vtkSmartPointer<vtkDICOMImageReader> reader =
vtkSmartPointer<vtkDICOMImageReader>::New();
reader->SetFileName("images/IMAGE.dcm");
reader->Update();


Thank you.



--
View this message in context: http://vtk.1045678.n5.nabble.com/Read-DICOM-file-into-vtkImageData-tp5720567.html
Sent from the VTK - Dev mailing list archive at Nabble.com.



More information about the vtk-developers mailing list