[vtkusers] how to display a serie of XA multiframe images

David Gobbi david.gobbi at gmail.com
Fri Jul 6 12:57:28 EDT 2012


On Fri, Jul 6, 2012 at 7:51 AM, José M. Rodriguez Bacallao
<jmrbcu at gmail.com> wrote:
> and if I am not using any lookup table

Use the SetLookupTable() method of vtkImageProperty to add one.

If all you need is a greyscale color map, you could even use a
vtkScalarsToColors object, because its default behavior will map grey
to grey through whatever window/level you set in the image property:

ip.SetLookupTable(vtkScalarsToColors())

ip.GetLookupTable().SetVectorModeToComponent()
ip.GetLookupTable().SetVectorComponent(i)

 - David



More information about the vtkusers mailing list