[vtkusers] Help: How to Read DICOM files in vtk
stefano mininel
mininel.ml at gnbts.univ.trieste.it
Thu Apr 11 03:45:39 EDT 2002
As you probably know DICOM files are much more than a simple "image",
with a long and complex "header" covering the "medical context" of the
image.
Before putting them in the graphics pipeline you should extract the pure
"image data" from the files.
1) Either you first convert all the .dcm files into .raw using the
freeware dicom2 by S. Barré (see
http://www.barre.nom.fr/medical/dicom2/ , of course this is a tip valid
only if you are under Windows)
2) or the 3D Slicer application (freeware from the MIT, see
http://www.slicer.org/ ) has several "vtkMRML..." VTK classes and if I
well remember something in them should allow direct reading in the
graphic pipeline of DICOM series.
Probably there are other solutions as well.
Hope this helps
Stefano Mininel
cspl wrote:
> Dear friends, I am a new user of vtk.I want to read slices of dicom
> like series of 50 images with extension of a slices.They purely raw
> data .I am trying to read the data using vtkVolume16Reader.But not
> solved.I wrote the code like following.Please help me
> anybody. vtkVolume16Reader *reader = vtkVolume16Reader::New();
> reader->SetDataByteOrderToLittleEndian();
>
> reader->SetFilePrefix("C:\\DicomFiles\\ImageFiles\\04081219\\6554888");
>
> reader->SetFilePattern("dcm");
> reader->SetImageRange(6554888,6555788);
> reader->SetDataSpacing(1,1,1);
> reader->SetDataDimensions(256,256); Thanking
> you, Regards,Ramakrishna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020411/921bc5c6/attachment.htm>
More information about the vtkusers
mailing list