[vtkusers] fill vtkImageData in 3D

Rachel aracha2010 at gmail.com
Fri Jan 7 14:45:30 EST 2011


Hi Kwayeke,

this is color image. To change the color R, G ,B try with this inside the
loop 

Image->SetScalarComponentFromDouble(x,y,z,0, R);
Image->SetScalarComponentFromDouble(x,y,z,1, G);
Image->SetScalarComponentFromDouble(x,y,z,2, B);

-- 
View this message in context: http://vtk.1045678.n5.nabble.com/fill-vtkImageData-in-3D-tp3331674p3332389.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list