[vtkusers] Can anyone help on how to extract grey/color information from image pixel by pixel in VTK?
Simon DROUIN
sdrouin at bic.mni.mcgill.ca
Thu Mar 4 10:44:37 EST 2004
Make sure you call vtkJPEGReader->Update() or that your pipeline is
executed before trying to access pixel information.
Simon
Q Ma wrote:
>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
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
More information about the vtkusers
mailing list