[vtkusers] Pixel data from vtkRenderWindow

cspl affable at hd2.dot.net.in
Wed Mar 12 04:05:52 EST 2003


Hi all,
   I have a problem in getting image data. I want to get the pixel data displayed by the  vtkrenderwindow in one application.  to get image data from class vtkrenderwindow . I use GetPixelData() of it which returns unsigned character data of image and i get good pixel data. Now the problem is it returning all the pixels which are in the window. If the window is covered( partially or fully) by other window or application then that window or application is also retrived in the image data. But i am not getting only the pixel data pertainingto the image displayed in the renderwindow. How to get only pixel data??? Can we get image data using vtkVolume or vtkRenderer??? I want the image data after it was rendered??? How to use GetZBufferData() function of vtkRenderWindow class??? It is returning float data type. How to use float type data in our application which needs unsigned type data. I have converted the data to unsigned but it is not working.

   Please suggest me in this regard.

   Thanks in advance.

-Regards,
   Sateesh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030312/fb86f667/attachment.htm>


More information about the vtkusers mailing list