[vtkusers] How to read BMP files to form a volume?

Sentil Balaji profbalse at yahoo.co.in
Fri Jan 9 13:20:11 EST 2004


Hey,

   I tried reading BMP files to form a volume using
vtkVolume16reader as:

	vtkVolume16Reader *v=vtkVolume16Reader::New();
        v->SetDataDimensions(126,126);
	v->SetFilePrefix("C:/p");
	v->SetImageRange(1,7);
	v->SetDataByteOrderToLittleEndian();
        v->SetDataSpacing (3.2, 3.2, 1.5);
where the BMP files are named as p.1,p.2 etc.,They are
in the 'C:/'.But, the program gives me an error that
the file is missing.
   I also tried the medical.cxx files .I got the
outline of the image volume I am supposed to but not
the rendering of it.
   I tried the vtkBMPreader but I am not clear is
setting the file pattern or the ImageRange for the
files..

Awaiting your reply..

Thanks
BeeJay

________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com



More information about the vtkusers mailing list