[vtkusers] How to blend RGB and gray image?

kidane hiliwi.leake at gmail.com
Mon Apr 14 12:16:31 EDT 2014


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.


More information about the vtkusers mailing list