[Insight-users] Bad crop with mouse click

David Doria daviddoria at gmail.com
Thu May 23 07:59:29 EDT 2013


On Wed, May 22, 2013 at 7:28 PM, Cary lorey
<developement.unity at gmail.com> wrote:
> Hello,
>
> I am trying to retrieve the values of a pixel from a mouse clicks and I pass
> the x and y parameters to the crop function , but when I click on the image
> , the application crashes. here is my code:

It sounds like this is really a VTK question (if your comment that the
right values are not produced by the GetComputedWorldValue function is
correct). Have you seen these examples?

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel2

David


More information about the Insight-users mailing list