[vtk-developers] LookupTable madness

David Gobbi dgobbi at irus.rri.on.ca
Tue May 22 00:44:13 EDT 2001


Hi Prabhu,

Thanks for the reference, I should have done a search myself.
The vtkLookupTable appears Build method appears to be correct
until the very end, where it takes the correct RGB values
and then maps each of them through a sinusoid.  Maybe this
produces a better-looking color map?

 - David

On Tue, 22 May 2001, Prabhu Ramachandran wrote:

> hi,
>
> Julian Humphries <julian at essaustin.com> reported this here:
>
> http://public.kitware.com/pipermail/vtkusers/2001-May/006197.html
>
> and I confirmed the problem with both 3.2 and the nightly releases.
> No one replied to the reports and I am no expert on this...  I thought
> the bug was pretty severe since any color mapping would be inaccurate
> if the LuT was messed up?
>
> prabhu
>
> >>>>> "DG" == David Gobbi <dgobbi at irus.rri.on.ca> writes:
>
>     DG> Hi all, I'm looking for a simple way to build a lookup table
>     DG> with a greyscale ramp in VTK, but the only way I've found is
>     DG> to set all table values directly via SetTableValue().
>
> <snip>
>     DG> but this results in the following grey values:
>
>     DG>   0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 3 3 3 4 4 5 5 5 6 6 7 8
>     DG> 8 9 9 10 11 11 12 13 13 14 .........  254 254 254 254 255
>
> <snip>
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtk-developers
>





More information about the vtk-developers mailing list