[vtkusers] z- buffer to distances from camera

Umer Rafi umer.rafi at rwth-aachen.de
Wed May 29 09:59:31 EDT 2013


Hi Everyone,

  I am new to VTK and rendering. I have a rendered depth map from VTK (file attached). What I want is to get the distance of each pixel in this depth map from camera. Can any body tell me how to convert z-buffer values to actual distances from camera. I will really appreciate any help and a sample code snippet to get me started. 
Thanks in  advance.

Regards
Umer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: depth.png
Type: image/png
Size: 8514 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130529/b9265c37/attachment.png>


More information about the vtkusers mailing list