[vtkusers] Help: How to Read DICOM files in vtk
cspl
affable at hd2.dot.net.in
Wed Apr 10 08:37:54 EDT 2002
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/20020410/8880ae3e/attachment.htm>
More information about the vtkusers
mailing list