[vtkusers] how to transform 32 bits RGBA image to 32 or 16 bits RGB image ?

Sébastien MARAUX maraux at ondim.fr
Tue Feb 17 10:31:43 EST 2004


Hello,

 

How can I convert a 32 bits RGBA (4scalars) vtkImageData to 24 bits RGB
(3 scalars) vtkImageData ?

 

How do I delete the fourth component ?

 

I tried to just “SetNumberOfScalarComponents” to 0 but it lead to a
false image, with “3 columns” effect

(seems that alpha value is read instead of second GRB, and so on).

 

Seb

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040217/ff51a5f8/attachment.htm>


More information about the vtkusers mailing list