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

David Gobbi david.gobbi at gmail.com
Wed Dec 15 15:07:51 EST 2010


Hi Rachel,

IntersectWithLine works in 3D data coordinates, i.e the coordinate system of
your 3D data set.  Your silhouette lies on some plane in 3D space, and each
pixel in the silhouette has a specific location on that plane.  The
IntersectWithLine method can be used to project that point back towards the
3D data.

But if your silhouette is in display coordinates, then vtkCellPicker will be
a better solution than vtkCellLocator. The vtkCellPicker can convert
directly from display coordinates to 3D data coordinates.

 - David


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

>
> Hi David
> what do you mean by :center of the pixel.? is it display coordinates or
> pixel coordinates?
> Thanks
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/coordinate-transformation-between-polydata-and-image-data-tp3216899p3306856.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101215/bea4760a/attachment.htm>


More information about the vtkusers mailing list