[vtkusers] vtkImagePlaneWidget and RGB colors

Patrick (Peng) Cheng peng-cheng at uiowa.edu
Tue Jul 13 13:38:22 EDT 2004


Hi
I am trying to use this widget to display a RGB image (unsigned char, 3 components).
But it can only map the first component. It doesn't treat the RGB voxel as colors.
I look into the code, it seems it's using a vtkImageMapToColors as a build in filter, which might be the problem.
When I use a vtkCutter and vtkPolyDataMapper, it can display the RGB image right.
Anyone knows how to solve this problem?
Thanks a lot!
---------------------------
Peng (Patrick) Cheng
Biomedical Engineering
University of Iowa
Tel:(319) 400-7442
Email: peng-cheng at uiowa.edu







More information about the vtkusers mailing list