Hi Xiaopeng,<br><br><br>1) Does your input image has orientation <br>    different from identity ?<br> <br>    The vtkImageData class does not manage<br>    orientation different from identiy.<br><br>2) For an illustration of the proper use of <br>
    picking, please look at the following code<br>    in IGSTK:<br><br>           IGSTK/Source/igstkView.cxx<br><br><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/igstkView.cxx?root=IGSTK&amp;view=markup">http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/igstkView.cxx?root=IGSTK&amp;view=markup</a><br>
<br>Please note that the correct way of managing<br>coordinates is to refer them to the physical <br>coordinate system of the input image.<br><br><br>     Regards,<br><br><br>            Luis<br><br><br><br>------------------------------------------------------------<br>
<div class="gmail_quote">On Mon, Oct 11, 2010 at 9:19 AM, Xiaopeng Yang <span dir="ltr">&lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">Dear users and developers,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Greetings!</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I modified the “PickPixel” example so that a CT
image can be loaded through ITK and then passed to VTK. After that the picking
pixel function is applied to that image to obtain position of a pixel so that
the position value can be input to a segmentation algorithm as seed point.
However, I got wrong position values. The same thing happened to the intensity
value of that pixel.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Could you please tell me what happened? Attached please find
my code.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks very much.</p>

<p class="MsoNormal"> </p><br></div></div></blockquote></div><br>