[Insight-users] Re: [vtkusers] pixel data at world position

Diego Parada icebishop at gmail.com
Wed Oct 5 15:16:56 EDT 2005


could you send me the code that add observer?

2005/10/5, Mark Wyszomierski <markww at gmail.com>:
>
> I created a vtkPointPicker picker, assigned that as the picker of my
> interactor.
> Then I created an observe event, which was bound to left button press
> events
> on my interactor. The pseudocode I posted in the previous email is what I
> do when the L button observer is called. Then all the information will be
> populated for you.
>  Mark
>
>  On 10/5/05, Diego Parada <icebishop at gmail.com> wrote:
> >
> > Hi,
> >
> > I'm trying the same thing, but my question are when i can capture the
> > coordinate
> >
> > 2005/10/5, Mark Wyszomierski <markww at gmail.com>:
> > >
> > >  You can fire a pick event when the user clicks the mouse:
> > >   Picker->Pick(eventpos[0], eventpos[1], 0, renderer);
> > >  Then you can get the mapped position:
> > >   Picker->GetMapperPosition(...);
> > >  Then the final x,y locs of the original image I get by:
> > >   originalX = (int)(ptMapped[0] / pixel_spacing_x + 0.5);
> > >  // same for y.
> > >  This always has given me the correct 'real' location.
> > >  Mark
> > >
> > >  On 10/5/05, Renaud Isabelle < renauisa at yahoo.fr > wrote:
> > >
> > > >  Hi all,
> > > >  I have read an initial 3D image from a file with itkImageFileReader
> > > > and displayed with VTK through vtkImageData/vtkImageActor.
> > > >  Now, since a known world position in 3D x,y,z, I would like to
> > > > retrieve the pixel value at this point of my image.
> > > >  This seems to be a complex problem, because I don't want the pixel
> > > > data that is displayed at this position but the pixel data of the raw image,
> > > > that is no rescaled instead.
> > > >  Is there some example where such a thing is done? Or any function?
> > > >  Thanks,
> > > >  Isabelle
> > > >
> > > > ------------------------------
> > > > *Appel audio GRATUIT partout dans le monde* avec le nouveau Yahoo!
> > > > Messenger
> > > > Téléchargez le ici !<http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com>
> > > >
> > > >
> > > > _______________________________________________
> > > > This is the private VTK discussion list.
> > > > Please keep messages on-topic. Check the FAQ at:
> > > > http://www.vtk.org/Wiki/VTK_FAQ
> > > > Follow this link to subscribe/unsubscribe:
> > > > http://www.vtk.org/mailman/listinfo/vtkusers
> > > >
> > > >
> > > >
> > >
> > > _______________________________________________
> > > Insight-users mailing list
> > > Insight-users at itk.org
> > > http://www.itk.org/mailman/listinfo/insight-users
> > >
> > >
> > >
> >
> >
> > --
> > Diego Armando Parada Cuervo
> > Estudiante de Ingeniería de Sistemas y Computación
> > Universidad Pedagógica y Tecnológica de Colombia
>
>
>


--
Diego Armando Parada Cuervo
Estudiante de Ingeniería de Sistemas y Computación
Universidad Pedagógica y Tecnológica de Colombia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20051005/418b4002/attachment.html


More information about the Insight-users mailing list