<DIV>Hi Mark, </DIV>
<DIV>&nbsp;</DIV>
<DIV>Yes. vtkPointPicker owns 3 different functions: </DIV>
<DIV>&nbsp;</DIV>
<DIV>- <STRONG>GetSelectionPoint</STRONG> contains my (X,Y) = (Interactor-&gt;GetEventPosition()[0],&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Interactor-&gt;GetEventPosition()[1])...: returns my picked point in screen coordinates</DIV>
<DIV>&nbsp;</DIV>
<DIV>- <STRONG>GetMapperPosition</STRONG> returns the&nbsp;real coordinates&nbsp;x,y,z of my picked point, non transformed point in 3D</DIV>
<DIV>&nbsp;</DIV>
<DIV>- <STRONG>GetPickPosition</STRONG>, also a 3D position</DIV>
<DIV>&nbsp;</DIV>
<DIV>You told me to use GetMapperPosition to compute my world coordinates from a point in screen coordinates. However, that is already that I have by using GetPickPosition: in my case, both functions, GetMapperPosition and GetPickPosition, return the same result. <BR><BR><B><I>Mark Wyszomierski &lt;markww@gmail.com&gt;</I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<DIV>I don't understand:<BR>&nbsp;</DIV>
<DIV>selection point (X,Y) in pixel coordinates&nbsp;&nbsp; // This is the loc picked in screen coordinates?</DIV>
<DIV><STRONG>--&gt; Yes, it is</STRONG></DIV>
<DIV>real position in world (x,y,z)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // This is the mapped position picked (mapped to an index in your image)?</DIV>
<DIV><STRONG>--&gt;ok, so what I would like to retrieve is the index which is mapped with my mapped position. Since index in my displayed image by VTK should be correspondant to my index in my itkImage read from a file, I could then&nbsp;get the pixel value of my itkimage at this index. Do you follow me?&nbsp;</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>Mark</DIV></BLOCKQUOTE><p>
                <hr size=1> 
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br> 
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>