<div dir="ltr">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.<br><br>Rather I would suggest you to manipulate the camera and use the worldPointPicker.<br>
<br><br>Jothy<br><br><div class="gmail_quote">On Mon, May 21, 2012 at 9:06 PM, Fabian Torres <span dir="ltr"><<a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<div><br></div><div>I would try to explain my problem the best I can.</div><div><br></div><div>I have some ultrasound images that have certain position, orientation and scale in a world space coordinate.</div>
<div><br></div>
<div>To display each image in vtk scene I have used vtkTransform in the vtkImageActor for each image:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>actor->SetInput(image);</div>
<div>actor->SetTransform(transform);</div></blockquote><div><br></div><div>I´m able to display the images in the correct position and orientation in the vtk scene. This has not been a problem.</div><div><br></div><div>
Now, the problem I have is that I want to access the vtkImageData from its world space coordinate, not the image coords.</div><div><br></div><div>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</div>
<div>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</div><div>the imageData from the actor?</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>-- <br>Fabián Torres Robles<br>
Maestria en Ciencias en Ingeniería Electrónica<br>Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a> <div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px">
</div><div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px"></div><br>
</div>
</font></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>