[vtk-developers] Read DICOM file into vtkImageData

Lodron, Gerald Gerald.Lodron at joanneum.at
Sun May 5 10:49:04 EDT 2013


vtkImageData* poImage = reader->GetOutput();

such questions should be sent to vtk users, not developers since you are using vtk and not developing....
________________________________________
Von: vtk-developers-bounces at vtk.org [vtk-developers-bounces at vtk.org] im Auftrag von trmcami [trmcami at gmail.com]
Gesendet: Sonntag, 5. Mai 2013 05:03
An: vtk-developers at vtk.org
Betreff: [vtk-developers] Read DICOM file into vtkImageData

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.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers




More information about the vtk-developers mailing list