[vtkusers] lookuptable: rgb to 256 colors
    David Gobbi 
    dgobbi at imaging.robarts.ca
       
    Tue Aug 20 23:32:16 EDT 2002
    
    
  
Hi Marc,
Look at vtkImageQuantizeRGBToIndex.
 - David
On Tue, 20 Aug 2002, Marc Niethammer wrote:
> Hi,
>
> I would like to create a vtkLookupTable with 256 colors which maps
> arbitrary RGB values to a color that is close. I.e. I would need some
> sort of equation that translates the r,g and b component to an index
> in the colormap (lookuptable) which should then have an rgb entry that is
> close to the one used for computing the index.
>
> Does anyone know how to do this?
>
> Thanks.
>
> -- Marc
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
    
    
More information about the vtkusers
mailing list