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&#39;t find a similar example of what I am doing. Let&#39;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&#39;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> &lt;<a href="mailto:domi@vision.ee.ethz.ch">domi@vision.ee.ethz.ch</a>&gt; 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>&gt; You could try vtkImageThreshhold and vtkImageMask or vtkImageMathematics to<br>&gt; combine the images in advance.<br>&gt; For rendering, simple is vtkImageActor.
<br>&gt;<br>&gt; On 8/15/07, Janny Dong &lt;<a href="mailto:janny.dong@gmail.com">janny.dong@gmail.com</a>&gt; wrote:<br>&gt;&gt; Hello, vtkusers<br>&gt;&gt;<br>&gt;&gt; I made a movie with VTK to visualize the temperature changes, as shown in
<br>&gt;&gt; the attached screen shot (map.jpg). The red dots are locations of<br>&gt;&gt; measurements. What I want to do is display a geographic map ( e.g. US map)<br>&gt;&gt; over this color map showing the state boundaries. The US map is kind of
<br>&gt;&gt; &#39;floating&#39; above my temperature map, masking the ocean part but not the<br>&gt;&gt; color changes (as in usmap.jpg).<br>&gt;&gt;<br>&gt;&gt; Could someone shed some lights on which VTK class to use? I was looking at
<br>&gt;&gt; vtkTexture but I don&#39;t think it is the right one.<br>&gt;&gt;<br>&gt;&gt; Thanks!<br>&gt;&gt; Janny<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; This is the private VTK discussion list.
<br>&gt;&gt; Please keep messages on-topic. Check the FAQ at:<br>&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________
<br>&gt; This is the private VTK discussion list.<br>&gt; 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>&gt; Follow this link to subscribe/unsubscribe:
<br>&gt; <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>