[vtkusers] Can anyone help on how to extract grey/color information from image pixel by pixel in VTK?

Q Ma s0343497 at sms.ed.ac.uk
Thu Mar 4 10:35:48 EST 2004


Hi, there,

I used vtkJPEGReader to read in a JPG image.
Then, I try to extract grey/color information from image pixel by pixel.
Although some methods seem should work, such as:
vtkJPEGReader->GetOutput()->GetScalarComponentAsFloat(x,y,z,0)
However, I can not make it work.

Can anyone give me some idea on how to do this?
Thanks.

Regards,
Qi




More information about the vtkusers mailing list