<div dir="ltr">Sorry, I should have posted to vtkusers.<div>I am using now only color images and AddInputConneection().</div><div><br></div><div>I remember using AddInput ( int, vtkDataObject* )  with first image in colored, second gray and it worked. Use of this function is now discouraged.</div>
<div>Anka</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 12:16 PM, kidane <span dir="ltr"><<a href="mailto:hiliwi.leake@gmail.com" target="_blank">hiliwi.leake@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ya, I took the RGB as first input and then the grayscale as shown below:<br>
<br>
                vtkSmartPointer<vtkImageBlend> imgBlender =<br>
vtkSmartPointer<vtkImageBlend>::New();<br>
                imgBlender->SetOpacity( 0, 0.5 );<br>
                imgBlender->SetOpacity( 1, 0.5 );<br>
                imgBlender->AddInput(colormapImage);<br>
                imgBlender->AddInput(grayscaleImage);<br>
<br>
thanks for your help<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-blend-RGB-and-gray-image-tp5726773p5726778.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-blend-RGB-and-gray-image-tp5726773p5726778.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br></div>