[vtkusers] Image Actor Showing only one channel

Francois Bertel francois.bertel at kitware.com
Tue Feb 24 09:43:11 EST 2009


Hello,

By default (ie for free), the hardware multiplies the texture color
value by the current state color. It means you can use the color on
the actor as a filter.
If you set the color on the actor to red (1.0,0.0,0.0), the color of
the rendered pixel on screen will be the texture color "times" red.
The green and blue will automatically
be black.

My recommendation is to use a single actor with the RGB texture and
change the color of the actor when the user hits a particular key.

On Tue, Feb 24, 2009 at 9:27 AM, Doug Hoppes <dhoppes at mbfbioscience.com> wrote:
> Hi all,
>
>
>
>             I have a standard RGB image and would like to show only the Red,
> Green OR blue channel in my image.  What is the best way to load the image
> so that I can toggle between the different channels?  Would there be one
> actor for each channel (comprising a total of 4 actors… Red, Green, Blue,
> and RGB)?  Or would it be better to swap the channel image on the fly when
> the user hits a particular key?
>
>
>
> Doug
>
>
>
> ----------------------------------------------------------------------
>
> Doug Hoppes dhoppes at mbfbioscience.com
>
> Senior Software Engineer
>
> MBF Bioscience (Microbrightfield, Inc.)
>
> +1.802.288.9290 ext: 119
>
> www.mbfbioscience.com
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list