Hello, Jonathan and Dominik<br><br>Thanks for your suggestions. I have been looking at vtkImageThreshold and vtkImageMaster, but I am not sure how to use them. I couldn't find a similar example of what I am doing. Let's say, I already have a map to be overlaid over my image. What I want to do is mask the ocean part as blue, for example, and set the land part (in white) as transparent. How can I set one color transparent? The map can be bmp, png, jpg...
<br><br>Dominik, I've tried the actor transparency and it worked. I also want one color to be totally transparent and others not.<br><br>Hope you can see my message...<br><br>Thanks again.<br><br>Janny<br><div><span class="gmail_quote">
On 8/16/07, <b class="gmail_sendername">Dominik Szczerba</b> <<a href="mailto:domi@vision.ee.ethz.ch">domi@vision.ee.ethz.ch</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
... and/or actor transparency.<br>- Dominik<br><br>jonathan grimm wrote:<br>> You could try vtkImageThreshhold and vtkImageMask or vtkImageMathematics to<br>> combine the images in advance.<br>> For rendering, simple is vtkImageActor.
<br>><br>> On 8/15/07, Janny Dong <<a href="mailto:janny.dong@gmail.com">janny.dong@gmail.com</a>> wrote:<br>>> Hello, vtkusers<br>>><br>>> I made a movie with VTK to visualize the temperature changes, as shown in
<br>>> the attached screen shot (map.jpg). The red dots are locations of<br>>> measurements. What I want to do is display a geographic map ( e.g. US map)<br>>> over this color map showing the state boundaries. The US map is kind of
<br>>> 'floating' above my temperature map, masking the ocean part but not the<br>>> color changes (as in usmap.jpg).<br>>><br>>> Could someone shed some lights on which VTK class to use? I was looking at
<br>>> vtkTexture but I don't think it is the right one.<br>>><br>>> Thanks!<br>>> Janny<br>>><br>>> _______________________________________________<br>>> This is the private VTK discussion list.
<br>>> Please keep messages on-topic. Check the FAQ at:<br>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>>> Follow this link to subscribe/unsubscribe:<br>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>>><br>>><br>>><br>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> This is the private VTK discussion list.<br>> Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br>--<br>Dominik Szczerba, Ph.D.<br>Computer Vision Lab CH-8092 Zurich<br><a href="http://www.vision.ee.ethz.ch/~domi">
http://www.vision.ee.ethz.ch/~domi</a><br></blockquote></div><br>