[vtkusers] (no subject)

Sarika Phatak sarika21 at hotmail.com
Mon Oct 2 14:11:58 EDT 2000


Hi!
I am a student from University of Texas at Arlingotn. I am trying to render 
the visible human data with vtkImageReader.h. The rendering window appears 
but it is blank and nothing gets renderd. I have attached the relavent part 
of my code which reads 40 CT data files from the directoy D:\Data\CTdata. 
The files are named as c_vm.xxxx where xxxx is the slice number. they are 
raw images. Is there something wrong in my naming structure? I am copying 
the error I am getting after executing the program. Please let me know if 
there are some things to be added or changed.

Error:

Generic Warning: In d:\nightly\vtk\imaging\vtkImageReader.cxx, line 754
File operation failed. row = 0, Read = 1026, Skip0 = -2052, Skip1 = 963414,
FilePos = 528728



Code:

vtkImageReader *reader = vtkImageReader::New();
        reader->SetDataScalarTypeToUnsignedShort();
        reader->SetDataByteOrderToBigEndian();
        reader->SetFilePrefix("D:/Data/CTData/c_vm.raw");
        reader->SetFilePattern("%s%.4d");
        reader->SetDataOrigin(0,0,1465);
        reader->SetDataMask(0x7fff);
        reader->SetHeaderSize(3416);
        reader->SetDataSpacing(0.72265625,0.72275625,1);
        reader->SetDataVOI(0,512,0,425,1466,1590);
        reader->SetDataExtent(0,512,0,512,1466,1590);
        reader->Update();
//I am just rendering some abdomen part. hence there are only few slices.

Thanks
Sarika Phatak


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.





More information about the vtkusers mailing list