[vtkusers] How to blend RGB and gray image?

Anka Kochanowska pluszcz at gmail.com
Mon Apr 14 13:38:38 EDT 2014


Sorry, I should have posted to vtkusers.
I am using now only color images and AddInputConneection().

I remember using AddInput ( int, vtkDataObject* )  with first image in
colored, second gray and it worked. Use of this function is now discouraged.
Anka



On Mon, Apr 14, 2014 at 12:16 PM, kidane <hiliwi.leake at gmail.com> wrote:

> Ya, I took the RGB as first input and then the grayscale as shown below:
>
>                 vtkSmartPointer<vtkImageBlend> imgBlender =
> vtkSmartPointer<vtkImageBlend>::New();
>                 imgBlender->SetOpacity( 0, 0.5 );
>                 imgBlender->SetOpacity( 1, 0.5 );
>                 imgBlender->AddInput(colormapImage);
>                 imgBlender->AddInput(grayscaleImage);
>
> thanks for your help
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/How-to-blend-RGB-and-gray-image-tp5726773p5726778.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20140414/8db74ac0/attachment.html>


More information about the vtkusers mailing list