[vtkusers] scalar type conversion

Blezek, Daniel J (Research) blezek at crd.ge.com
Fri Jan 10 16:44:18 EST 2003


John,

  Have a look at vtkImageShiftScale and vtkImageCast.  ShiftScale lets you put your data in a
reasonable range, while cast goes from float -> unsigned short (or whatever).

-dan

--
Daniel Blezek, Ph.D.
blezek at crd.ge.com
Visualization and Computer Vision Lab, Imaging Technologies
GE Global Research Center


> -----Original Message-----
> From: clyne at ncar.ucar.edu [mailto:clyne at ncar.ucar.edu]
> Sent: Friday, January 10, 2003 4:40 PM
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] scalar type conversion
> 
> 
> Are there any filters/utilities for doing scalar type 
> conversion within
> vtk? For example, I have a vtkImageData object with floating 
> point data
> that i'd like to volume render. Since the volume mappers in vtk don't
> support floating point data I need to quantize the data to byte-sized
> ints. Is there a facility for doing this? I'm using the tcl interface,
> so doing it myself from the interpreter would obviously not be 
> terribly efficient.
> 
> thanks - jc
> 
> 
> John Clyne 	(clyne at ncar.ucar.edu)	
> National Center for Atmospheric Research
> P.O. Box 3000, Boulder, Colorado 80307	
> (303) 497-1236	FAX (303) 497-1298	
> _______________________________________________
> 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