[vtkusers] Problems with raw data...

Isabel Siqueira isabels at inf.ufrgs.br
Fri Aug 9 10:29:09 EDT 2002


Hi VTK community,

I have a raw volume dataset and a need to read the file to do volume
rendering. I just use the class vtkImageReader for this but a don't achieve
the intend image.

I have written code as folllows:

* Volume 1: 256 x 256 x 256,  8 bits, 1 : 1 :1

  vtkImageReader *v16 = vtkImageReader::New();
    v16->SetDataExtent(0, 255, 0, 255, 1, 256);
	//v16->SetFileDimensionality(3);
	v16->SetDataByteOrderToLittleEndian();
	v16->SetFileName(".../aneurism.raw");
	//v16->SetDataOrigin(0, 0, 0);
    	v16->SetDataScalarTypeToUnsignedChar();
    	//v16->SetDataMask(0x7fff);
	//v16->SetHeaderSize(0);
      v16->SetDataSpacing(1.0, 1.0, 1.0);

Any ideia about this problem?

Thanks,
Isabel




More information about the vtkusers mailing list