[vtkusers] How to show black and white image as black and red?

David Doria daviddoria at gmail.com
Wed Sep 7 10:26:59 EDT 2011


On Wed, Sep 7, 2011 at 10:23 AM, soheilghafurian
<soheilghafurian at yahoo.com> wrote:
> Hi, I have a black and white two-dimensional image. How could visualize it as
> a black and red image? I mean, instead of the color white, I want to have
> red.
>
> Thanks a lot for your help

I think you can use vtkImageMapToColors, similar to this example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/Transparency

David



More information about the vtkusers mailing list