<div dir="ltr">If you want to interrogate your data, then the vtkCellPicker is the way to go.<div>It provides tons of information about the pick point, such as:</div><div><br></div><div>The (x,y,z) pick coordinate in world coords and in data coords (use the method<br></div><div>GetMapperPosition() to get the point in data coords).</div><div><br></div><div>The PointId, CellId, and SubId, and PCoords for any data set that was picked.</div><div><br></div><div>For images, it provides the CellIJK indices and the PointIJK indices (you want</div><div>the latter if you want to know what voxel was picked).  This works regardless</div><div>of whether you render the image as slices, or as a volume rendering, or if the</div><div>image is a texture on a vtkPolyData.</div><div><br></div><div>It even has a method called GetDataSet() so that you can directly get the</div><div>image data that was picked (you'll have to use vtkImageData::SafeDownCast()</div><div>to verify that the data is actually image data).</div><div><br></div><div> - David</div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 23, 2016 at 5:37 PM, Lonni Besançon <span dir="ltr"><<a href="mailto:lonni.besancon@gmail.com" target="_blank">lonni.besancon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">While reading your answer I was about to ask about speed and performance of<br>
both but you actually gave me the answer in the end :).<br>
<br>
One more quick question about the pickers then. So my vtkPlane is actually a<br>
slice of a bigger dataset (imageReslice). My question is, with the help of<br>
the pickers, is it possible to go from my screen coordinates to my dataset<br>
coordinates? For instance if I wanted to get on which point X,Y,Z my finger<br>
is placed when I'm touching the slice?<br>
<br>
Thanks again for the additional information and the initial help you have<br>
provided.<br>
<br>
Lonni<br><div class=""><div class="h5"><br>
</div></div></blockquote></div><br></div></div></div></div>