[vtkusers] custom colormap
Amy Squillacote
amy.squillacote at kitware.com
Wed Apr 26 09:55:56 EDT 2006
Hi Fred,
You can either manually set the values in a vtkLookupTable (using
methods like SetTableValue):
http://www.vtk.org/doc/nightly/html/classvtkLookupTable.html, or you
can try using a vtkColorTransferFunction:
http://www.vtk.org/doc/nightly/html/classvtkColorTransferFunction.html.
vtkColorTransferFunction lets you set colors for specific scalar
values and then interpolates between them.
- Amy
At 09:30 AM 4/26/2006, fred wrote:
>Hi all,
>
>I have two types of data.
>
>First is module complex.
>So values goes from 0 to vmax as this :
>
>0 ----> vmax
>blue green red
>
>which is good.
>
>Second type is real part of imaginary part of complex.
>Values goes from vmin=-vmax to vmax as this
>
>-vmax ----> 0 ----> vmax
>blue green red
>
>So null values are green.
>
>I whish I have them in white (or black) as this :
>
>- vmax ----> 0 ----> vmax
> blue green white yellow red
>
>How can I setup LUT to have this ?
>Any links or URL ?
>
>Thanks in advance.
>
>Cheers,
>
>--
>Fred.
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list