[vtk-developers] New vector modes for vtkScalarsToColors

Arnaud GELAS arnaud_gelas at hms.harvard.edu
Tue Mar 1 10:27:49 EST 2011


David,

Currently, in the field of microscopy we can have up to 32 channels 
(components) images, and for each channel we have an associated color. 
(Although, most of the time people use less than 6 channels.)

Do you think it would be possible to make a more general mode for such 
color spaces?

Arnaud

On 02/28/2011 12:39 PM, David Gobbi wrote:
> Hi All,
>
> I'm in the process of adding more VectorModes to vtkScalarsToColors.
> Right now it supports:
>    Component - map one vector component through the table
>    Magnitude - map the vector magnitude through the table
>
> However, I have to deal with multi-component data that is already
> color data.  When I apply a vtkLookupTable, I want it to automatically
> treat multi-component data as color data, and only apply the lookup
> when it receives single-component data. So I've added the following
> vector mode:
>    RGBColors - if input is multi-component, convert to unsigned char
>
> Mathieu has already requested modes for YCbCr and other color
> spaces, which vtkScalarsToColors could convert on-the-fly to
> RGB.  To me, it makes sense to have all the conversions handled
> in vtkScalarsToColors so that they can be shared by the Imaging
> and Graphics pipelines.
>
> Any comments/questions?
>
>   - David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>




More information about the vtk-developers mailing list