[vtkusers] vtkImageView2 to show RGBA image

enjoywm at cs.wm.edu enjoywm at cs.wm.edu
Wed Jul 29 17:11:18 EDT 2009


Hi,
I have a color 3D image (RGBA). I want to use vtkImageView2 to show one
slice.

The following code only give me gray result.

image_view->SetInput(reader->GetOutput());
image_view->SetColorLevel(127);
image_view->SetColorWindow(255);
image_view->SetSlice(50);
image_view->Render();

I need to get a color image.

Thanks in advance!

Yixun



More information about the vtkusers mailing list