[vtkusers] How to overlay two images with different opacities, ..

vikrant manne vikrant.manne at gmail.com
Thu Aug 13 11:26:56 EDT 2009


Hi Marf,
I was thinking, may be you could use the image as an Image actor and set its
opacity while rendering,
using Actor->SetOpacity(float)

Thanks,
Vikrant Manne
On Thu, Aug 13, 2009 at 9:51 AM, Anka Kochanowska <anka at bic.mni.mcgill.ca>wrote:

> Hi,
> I am doing it just synchronizing the planes with images. Then I have
> separate controls for color and opacity for every image. I use
> vtkImageReslice to put the data in the "same" (synchronized) plane, which
> forces me to use the same spacing, so on one of my images I loose
> resolution.
>
>
> Anka
>
> Miguel Angel Rodriguez Florido wrote:
>
>>    Hi Anka,
>>
>>    thanks for your email, but your proposal doesn't fix my problem. I've
>> been playing with vtkImageBlend, but it changes the opacity of all the
>> image.
>>
>>    I'm trying other things. I'll post my experience.
>>    Best regards and thank you very much again.
>>
>> Anka Kochanowska wrote:
>>
>>> Hi!
>>> You could use vtkImageBlend.
>>> Anka
>>>
>>>
>>> Miguel Angel Rodriguez Florido wrote:
>>>
>>>>    Hi all,
>>>>
>>>>    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.
>>>>
>>>>    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?.
>>>>
>>>>    Thank you very much.
>>>>    Best regards.
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>  _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090813/a6601616/attachment.htm>


More information about the vtkusers mailing list