[vtkusers] [Insight-users] Picking Pixel Error
Luis Ibanez
luis.ibanez at kitware.com
Sun Oct 17 06:50:24 EDT 2010
Hi Xiaopeng,
1) Does your input image has orientation
different from identity ?
The vtkImageData class does not manage
orientation different from identiy.
2) For an illustration of the proper use of
picking, please look at the following code
in IGSTK:
IGSTK/Source/igstkView.cxx
http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/igstkView.cxx?root=IGSTK&view=markup
Please note that the correct way of managing
coordinates is to refer them to the physical
coordinate system of the input image.
Regards,
Luis
------------------------------------------------------------
On Mon, Oct 11, 2010 at 9:19 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:
> Dear users and developers,
>
>
>
> Greetings!
>
>
>
> 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.
>
>
>
> Could you please tell me what happened? Attached please find my code.
>
>
>
> Thanks very much.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101017/ac7cdcd2/attachment.htm>
More information about the vtkusers
mailing list