<div>On Tue, Nov 6, 2012 at 10:43 AM, Alessandro <span dir="ltr">&lt;<a href="mailto:notinmyhead@gmail.com" target="_blank">notinmyhead@gmail.com</a>&gt;</span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I&#39;m wondering if there is way to interactively change brightness and contrast of an image displayed in render windows. I&#39;d like to program it in a custom interactorstyle.<br>
<br>
Thanks<br>
Ale<br></blockquote><div><br></div><div>vtkInteractorStyleImage already has some of that functionality:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/InteractWithImage">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/InteractWithImage</a><br clear="all">
<br>You can subclass it (here is how: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents</a> (that example does not use vtkInteractorStyleImage, but should give you the idea) ) to implement custom functionality.</div>
<div class="gmail_quote"><br>David</div>