<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>Please help me. I really need your help!<br />
<blockquote style="border-left: #000000 2px solid; padding-left: 5px; padding-right: 0px; margin-left: 5px; margin-right: 0px">--- Original Message ---<br />
<b>From : </b>"Xiaopeng Yang"<yxp233@postech.ac.kr><br />
<b>To : </b><vtkusers@vtk.org>, <insight-users@itk.org><br />
<b>Date : </b>2010/11/29 ¿ù¿äÀÏ ¿ÀÈÄ 10:28:50<br />
<b>Subject : </b>[Insight-users] Get the selection point in screen (pixel) coordinates<br />
<br />
<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 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> </p>
<p>std::cout <<</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">->Interactor->GetPicker()->GetSelectionPoint(index);</font><font color="#a31515" size="2"><font color="#a31515" size="2">"Index: "</font></font><font size="2"> << index[0] << </font><font color="#a31515" size="2"><font color="#a31515" size="2">" "</font></font><font size="2"> << index[1] << </font><font color="#a31515" size="2"><font color="#a31515" size="2">" "</font></font><font size="2"> << index[2] << std::endl;</font><br />
<br />
<font size="2"><br />
<br />
</font><br />
<br />
<style type="text/css">
BODY{FONT-SIZE: 10pt;}
DIV, P {FONT-SIZE: 10pt;margin-top:2px;margin-bottom:2px;}
TD {FONT-SIZE: 10pt}</style>
<table width="100%" topmargin="1" leftmargin="1">
<tbody>
<tr>
<td>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</td>
</tr>
</tbody>
</table>
<img width="1" height="1" alt="" 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" /></blockquote><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=5965229.1291042383043.JavaMail.root%40mail1.postech.ac.kr&store=%2Fstore01%2Fmindex%2F382%2Fyxp233&host=mail.postech.ac.kr" height=1 width=1>