[vtkusers] How to change colour mapping of a vtkImageData? (used as a plane's texture)

Sean McBride sean at rogue-research.com
Tue Jun 28 10:57:43 EDT 2005

On 2005-06-27 18:13, Sara Broughton - CSCI/P2002 said:

>You could try using vtkImageMapToColors.

Thanks Sara!

vtkImageMapToColors does the trick nicely!  I had also discovered the
method vtkTexture::SetLookupTable(vtkLookupTable*) which also worked,
but oddly it only takes a vtkLookupTable, not the more general
vtkScalarsToColors, so vtkImageMapToColors is much nicer.

Thanks again!

Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada

More information about the vtkusers mailing list