[vtkusers] vtkVolume16reader

Mallya, Yogish (CORP, GEITC) Yogish.Mallya at geind.ge.com
Mon Jan 22 23:45:21 EST 2001


hi  Ahmed,

Try with the class VtkImageCast. This class allows you to change the data
type.

	VtkVolume16Reader reader
	.....
	.....
 	vtkImageCast cast
    	cast SetOutputScalarTypeToUnsignedShort
    	cast SetInput [reader GetOutput]

	vtkPNMWriter writer
	....
	....
	writer SetInput [ cast GetOutput]
	

best rgds,
yogish

-----Original Message-----
From: Ahmed Mahmoud [mailto:ahmedmm at gega.net]
Sent: Monday, January 22, 2001 11:47 AM
To: vtkusers at public.kitware.com
Subject: [vtkusers] vtkVolume16reader


Hello all ,
I use vtkVolume16Reader to read 16 bit files , I have tried to write it
again to a file.
I have tried to use vtkPNMWriter and vtkTIFFWriter and I got an answer
Error vtkPNMWriter accept only unsigned char scalars.
How can I write 16 bit to a file ? Please .
Thank you.
Ahmed.


_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list