[vtkusers] Re: Why would my TIFF or BMP image look dark?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Wed Sep 1 16:55:50 EDT 2004


Hi Alex,

If its an 8 bit image...

vtkImageMapper
    mapper SetColorWindow 255
    mapper SetColorLevel 127.5

Basically, the ColorWindow should be the difference between the scalar min
and max range and the ColorLevel should be the mid point

hth

Goodwin

"Alex Lear" <alear at cns.montana.edu> wrote in message
news:002d01c49053$5db4ecc0$e8b25a99 at x300...
> I have used vtkTIFFReader (or vtkBMPReader) to read in an image and
> displayed it with vtkMapper2D and vtkActor2D.  The image is a line drawing
> with black background and white lines which show up good in photoshop and
> gimp.  In the vtkRenderWindow the white lines show up dark grey and hard
to
> see.  I have messed with the actor properties and the little/big endian
> settings in the reader.
>
> Does someone have some thoughts on why this might be happening or settings
> to try?
>
> Thanks,
> Alex
>
>
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>






More information about the vtkusers mailing list