[vtkusers] Image coords and image transformation
Jothybasu Selvaraj
jothybasu at gmail.com
Mon May 21 16:14:52 EDT 2012
You could use vtkWorldPointPicker to do that. But I am afraid that it would
give you the correct coordinate, since you are transforming your actor.
Rather I would suggest you to manipulate the camera and use the
worldPointPicker.
Jothy
On Mon, May 21, 2012 at 9:06 PM, Fabian Torres <fabian.trobles at gmail.com>wrote:
> Hi.
>
> I would try to explain my problem the best I can.
>
> I have some ultrasound images that have certain position, orientation and
> scale in a world space coordinate.
>
> To display each image in vtk scene I have used vtkTransform in the
> vtkImageActor for each image:
>
> actor->SetInput(image);
> actor->SetTransform(transform);
>
>
> I´m able to display the images in the correct position and orientation in
> the vtk scene. This has not been a problem.
>
> Now, the problem I have is that I want to access the vtkImageData from its
> world space coordinate, not the image coords.
>
> Example if I want to access the pixel (0,0,0) image coords meaning the
> first pixel of the imageData, and I know that this pixel is located in
> the coordinate (100,130,89) in the world space. How can I access to the
> data of this pixel using the world space coordinates? Can I access
> the imageData from the actor?
>
> --
> Fabián Torres Robles
> Maestria en Ciencias en Ingeniería Electrónica
> Ingeniería en Sistemas Electrónicos
> tel. 58081280, 0445534661338
> e-mail fabian.trobles at gmail.com, dae.wong at gmail.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
>
>
--
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120521/9c0914f0/attachment.htm>
More information about the vtkusers
mailing list