Hi
Jothy <div><br></div><div>Thanks for your reply.</div><div><br></div><div>I have already checked the worldPointPicker class and it does not solve my problem, cause it only give me the world coordinate, and as I said previously I already know that. What I want to know is the index of the pixel (to obtain the value of that pixel) that is located in that world coordinate.</div>
<div><br></div><div>Manipulating the camera its not an option because I´m working with a lot of images and a lot of points and I´m not picking the point manually. So a think that would not solve my problem.</div><div><br>
</div><div>Thanks for your advice, </div><div>If you, or somebody else, have some other suggestion I would be please to hear about it.</div><div><br></div><div> <br><br><div class="gmail_quote">On Mon, May 21, 2012 at 3:14 PM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><div><div class="h5">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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">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><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></div></div>_______________________________________________<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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></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="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><br>
</div>