You'll find some examples that do precisely this in VTKEdge. (<a href="http://vtkedge.org">vtkedge.org</a>). Look at PaintbrushTest*.cxx. It overlays a label map segmentation on a graylevel image. The opacity of the label map, or each label individually is controlled using "<" and ">" keys, so as to fade the segmentations in and out.<br>
<br>The classes that do the blending are based on VTK..<br><br>--<br>karthik<br><br><div class="gmail_quote">2009/8/13 Miguel Angel Rodriguez Florido <span dir="ltr"><<a href="mailto:marf@itccanarias.org">marf@itccanarias.org</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi all,<br>
<br>
Perhaps this is an obvious question, but I've been playing with textures and lookuptables but I didn't get what I was looking for. I don't know where I'm wrong.<br>
<br>
I would like to overlay two images (a color/graylevel image and its segmented version), and then I would like to change the opacity of any label or change its color. Could anybody give me any hint?.<br>
<br>
Thank you very much.<br>
Best regards.<br>
<br>
-- <br>
Miguel Angel Rodríguez Florido<br>
Departamento de Ingeniería del Software<br>
División de Investigación y Desarrollo Tecnológico<br>
INSTITUTO TECNOLOGICO DE CANARIAS, S.A. - GOBIERNO DE CANARIAS<br>
<a href="http://www.itccanarias.org" target="_blank">www.itccanarias.org</a> t: +34 928 727548/457462, f: +34 928 727517<br>
<br>
--------------------------------------------------------------------------<br>
AVISO LEGAL:<br>
Este mensaje y los ficheros adjuntos si los hubiere, se dirigen exclusivamente a su destinatario y puede contener información privilegiada o confidencial. La transmisión errónea del presente mensaje en ningún momento supone renuncia a su confidencialidad. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.<br>
<br>
LEGAL WARNING:<br>
This message and the files attached if there were any, are intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege. A wrong transmission to this message don't suppose we relinquished to It's confidential. If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it.<br>
<br>
<br>
<br>
<br>
<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><br clear="all"><br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>Kitware Inc.<br>Ph: 518 881 4919<br>Fax: 518 371 4573<br>