<meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">2010/8/19 Hüseyin Savaş <span dir="ltr"><<a href="mailto:metlord@hotmail.com">metlord@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="padding-left:10px;padding-right:10px;padding-top:15px" name="Compose message area">
<div><font size="2" face="Arial">Hello,</font></div>
<div><font size="2" face="Arial">I want to display density(greyscale) value of my
cursor's position on an image while my mouse is moving. </font></div>
<div><font size="2" face="Arial">For this I have RenderWindowInteractor's
GetLastEventPosition() which returns two integers as coordinate.</font></div>
<div><font size="2" face="Arial">I have tried various ways but couldn't achieve
success yet. </font></div>
<div><font size="2" face="Arial">If someone could give me some lead information that
would be perfect.</font></div>
<div><font size="2" face="Arial">Thanks,</font></div><div><font size="2" face="Arial"><br></font></div></div></blockquote><div><br></div><div>Dean Inglis created a great example of this here: </div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel</a></div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel"></a>Let us know if that does the trick.<br><br><div>David</div></div>