<DIV>Hi Mark, </DIV>
<DIV> </DIV>
<DIV>Yes. vtkPointPicker owns 3 different functions: </DIV>
<DIV> </DIV>
<DIV>- <STRONG>GetSelectionPoint</STRONG> contains my (X,Y) = (Interactor->GetEventPosition()[0], <BR> Interactor->GetEventPosition()[1])...: returns my picked point in screen coordinates</DIV>
<DIV> </DIV>
<DIV>- <STRONG>GetMapperPosition</STRONG> returns the real coordinates x,y,z of my picked point, non transformed point in 3D</DIV>
<DIV> </DIV>
<DIV>- <STRONG>GetPickPosition</STRONG>, also a 3D position</DIV>
<DIV> </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 <markww@gmail.com></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> </DIV>
<DIV>selection point (X,Y) in pixel coordinates // This is the loc picked in screen coordinates?</DIV>
<DIV><STRONG>--> Yes, it is</STRONG></DIV>
<DIV>real position in world (x,y,z) // This is the mapped position picked (mapped to an index in your image)?</DIV>
<DIV><STRONG>-->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 get the pixel value of my itkimage at this index. Do you follow me? </STRONG></DIV>
<DIV> </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>