<style type='text/css'>
.Bold { font-weight: bold; }
.Title { font-weight: bold; font-size: 18px; color: #cc3300; }
.Code { border: #8b4513 1px solid; padding-right: 5px; padding-left: 5px;color: #000066; font-family: 'Courier New' , Monospace;background-color: #ff9933; }
</style>Dear friends,<br />
<br />
I applied vtkPointPicker to pick a point in screen (pixel) coordinates from a dataset. The data are a series of CT images. However, there are two problems: 1) the z value is always 0, no matter in&nbsp;which slice I pick a point; 2) the x and y values are different from other programs like MITK. I compared the values of the same point between my program and MITK. MITK shows that the z value changes according to which slice you are in to pick a point.<br />
<br />
Here is my code:<br />
<br />
<font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p>double</p>
<p>&nbsp;</p>
<p>std::cout &lt;&lt;</p>
</font></font><font size="2"> index[3];</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">this</font></font><font size="2">-&gt;Interactor-&gt;GetPicker()-&gt;GetSelectionPoint(index);</font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;Index: &quot;</font></font><font size="2"> &lt;&lt; index[0] &lt;&lt; </font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot; &quot;</font></font><font size="2"> &lt;&lt; index[1] &lt;&lt; </font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot; &quot;</font></font><font size="2"> &lt;&lt; index[2] &lt;&lt; std::endl;</font><br />
<br />
<font size="2"><br />
<br />
</font><br><br><style>
BODY{FONT-SIZE: 10pt;}
DIV, P {FONT-SIZE: 10pt;margin-top:2px;margin-bottom:2px;}
TD {FONT-SIZE: 10pt}
</style>
<body leftmargin=1 topmargin=1>
Ergonomic Design Technology Lab<BR>
Dept. of Industrial and Management Engineering<BR>
Pohang Univ. of Science and Technology<BR>
South Korea<BR>
Tel: 82-54-279-8246<BR>
HP: 82-10-9794-0110</body>
<img src="http://mail.postech.ac.kr:80/receiveMDNResponse.do?from=yxp233@postech.ac.kr&to=insight-users@itk.org&mid=6192997.1291037330950.JavaMail.root%40mail1.postech.ac.kr&store=%2Fstore01%2Fmindex%2F382%2Fyxp233&host=mail.postech.ac.kr" height=1 width=1>