If the two images are at the same location in space, it seems like you should blend the two images (vtkImageBlend) and then display it.<br><br>If they are at different depths, you can achieve transparency either by setting the opacity on both or on the actor closer to the camera to be non-zero. <br>
Alternatively to achieve transparency on selected regions of an image, you can give it RGBA or LA (2 or 4 component) data. The last component will be treated as alpha value for the pixel.<br><br>I would suggest that you dither one of the images by a small amount.<br>
<br><div class="gmail_quote">On Mon, Feb 14, 2011 at 7:16 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there any concept of priority or "front" with vtkImageActor?<div><br></div><div>Say for example I have two vtkImageActor's (2D) both with some transparency and I want to switch which one is "on top". Is there a way to do this without actually translating one of the images perpendicular to the camera? That is, if both images occupy the same space (the Z=0 plane for example), how do you determine which one is visible?</div>
<div><br clear="all">Thanks,<br><br>David<br>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>