[vtkusers] Re: Help: How to Read DICOM files in vtk

wolfweed wolfweed at sina.com
Thu Apr 11 22:14:15 EDT 2002


hi,maybe this code can help you,these files are DICOM3.0(512*512*16bit*200)

 vtkImageReader  *reader=vtkImageReader::New();
    reader -> SetDataByteOrderToLittleEndian();
    reader -> SetFilePrefix(".../data/dicom");
    reader -> SetHeaderSize(3606);
    reader -> SetDataExtent(0,511,0,511,1,200);
    reader -> SetDataMask(0xffff);








More information about the vtkusers mailing list