[vtkusers] help !!!!! From pixel to 3D point

David Gobbi david.gobbi at gmail.com
Wed Dec 15 15:36:32 EST 2010


On Wed, Dec 15, 2010 at 1:18 PM, Rachel <aracha2010 at gmail.com> wrote:

>
> It means i have to compute the corresponding of each pixel in the plane. Is
> it correct?
>

Yes, you have to compute an (x,y,z) coordinate for each pixel in the plane,
and transform that coordinate into the coordinate system of your 3D data.
 If you know all the camera parameters from when the image was grabbed, then
you can figure out where the "silhouette plane" lies with respect to your 3D
data.

Normally, if you do this while you are rendering the data, the vtkCellPicker
can do all the work for you.  In your case, though, you might have to look
inside the vtkCellPicker code and do more-or-less the same thing that it
does, but with the vtkCellLocator instead.

  David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101215/5ca19fb0/attachment.htm>


More information about the vtkusers mailing list