[vtkusers] Make a color transparent with vtkImageThreshold & vtkImageMask
Janny Dong
janny.dong at gmail.com
Mon Sep 10 10:45:54 EDT 2007
Hi, VTKusers,
I have a map as the attached file (map2.png). I'd like to make the white
color (the land) part totally transparent, but the blue color totally opaque
( the ocean part), because I am going to overlay this map on top of another
image(map.jpg). The effect should be the color changes displayed in the land
part, the ocean part should be masked. Jonathan and Dominik suggested using
vtkImageThreshold and vtkImageMask to combine the images. (
http://public.kitware.com/pipermail/vtkusers/2007-August/092195.html) I
searched previous messages in this list, but couldn't figure it out so far.
Could anyone tell me what is the correct procedure to use these vtk classes?
What should be the input & output of them? Or is there any other ways to
make part of an image transparent and overlay it on another?
Thanks,
Janny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070910/c79ad226/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: map2.PNG
Type: image/png
Size: 12100 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070910/c79ad226/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: map.JPG
Type: image/jpeg
Size: 20151 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070910/c79ad226/attachment.jpeg>
More information about the vtkusers
mailing list