scalars to color mapping

David Gobbi dgobbi at irus.rri.on.ca
Thu Mar 23 17:18:54 EST 2000


Hi Dingrong,

If you are using the vtkLookupTable in conjunction with a
vtkTexture, you have to use

texture.MapColorScalarsThroughLookupTableOn()

otherwise, if you send unsigned-char data to the texture it
will assume that the data has already been passed through a
lookup table.

 - David

--
  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Thu, 23 Mar 2000, Dingrong Yi wrote:

> Hi there,
> 
> I noticed one problem of vtk on scalars to color mapping. I have a
> Structured data sets, with dimensions 63 151 164. I displayed with color
> table hue range set to 0 0.667, or 0 1 , or 0.667  0. No matter what color
> range, the displayed image is just gray scale image (indeed, my value
> range is set to cnstant 1 1). With the same CPP code, several small volume
> image (16 16 7)  got correct colors.  Is that true that VTK color mapping
> works incorrectly for bigger volume images ? 
> 
> Any body has the same experience ? 
> 
> Thanks.
> 
> Dingrong
> 
> 
> 
> --------------------------------------------------------------------
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at public.kitware.com>. For help, send message body containing
> "info vtkusers" to the same address.
> --------------------------------------------------------------------
> 

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list