[vtkusers] How to display 3D RGB data with VTK?

saifeng liusaifeng at gmail.com
Tue May 19 09:28:17 EDT 2009


The easiest way is to pass the output of vtkimagereslice or other filters to
vtkImageActor.
Nothing else is needed. 


saifeng wrote:
> 
> Hi,
> I have developed a program to display 3D ultrasound raw data, and
> everything
> goes well. Now I want to extend my work by displaying some 3D RGB raw
> data,
> but I failed.
> 
> I have found somebody's suggestion on the mailing list, the suggestion is
> that, first quantizing the color to a small set of colors ,and then build
> a
> lookup table for it. I have tried this, but it does not work. Maybe I did
> it
> in a wrong way.
> 
> now I have a 3D RGB raw data, and there are 3 components( the r,g,b value;
> 8
> bit ) in each scalar, and I have successfully created a vtkImageData, and
> I
> want to display a single slice of this image data. I choose to use
> vtkReslice to display the sagittal, coronal and axial slices; and I choose
> to use vtkImagePlaneWidget to display these slices together. They all work
> perfectly with grey scale raw data.
> 
> So how to build up a lookup table for rgb data? or how to quantizing my
> data
> to a small set of colors?
> Besides, can we display the data directly without building a lookup table,
> since the value itself is RGB value already?
> 
> Thank you very much for your help.
> 
> Saifeng,
> 
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-display-3D-RGB-data-with-VTK--tp23592963p23616413.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list