[vtkusers] .RAW file

Massinissa Bandou Massinissa.Bandou at USherbrooke.ca
Thu Jul 11 09:22:41 EDT 2013


Hi Bill,

I set the SetdataExtent to(0,511,0,511,0,511) and my data are Signed short
little endian (16 bit). So I changed my code to:

	vtkImageReader *reader = vtkImageReader::New(); 
	reader->SetFileName(file.toStdString().c_str()); 
	reader->SetFileDimensionality(3);
	reader->SetDataExtent(0,511,0,511,0,511);
	reader->SetDataSpacing(0.145, 0.145, 0.145); 
	reader->SetDataByteOrderToLittleEndian();
	reader->SetDataScalarTypeToShort();
	reader->Update();

Even with these modifications, I got nothing. Is there any other class to
read a 3D .raw images?

Thank you for your time!!





--
View this message in context: http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842p5721904.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list