Hi!<div>At some point I used vtkImageMapToWindowLevelColors to change brightness.</div><div>Window and level do not correspond exactly to brightness and color.</div><div><br></div><div>Anka</div><div><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 4:08 AM, Alessandro <span dir="ltr"><<a href="mailto:notinmyhead@gmail.com" target="_blank">notinmyhead@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I got your point. Mine is that I need to move the way user interact to change brightness and controll from the vtkInteractorStyleImage, so I'm looking for something that simply allows the modification on runtime. Is there something like that?<br>
<br>
Ale<br>
<br>
Il giorno 06/nov/2012, alle ore 16.52, David Doria ha scritto:<br>
<div class="HOEnZb"><div class="h5"><br>
> On Tue, Nov 6, 2012 at 10:43 AM, Alessandro <<a href="mailto:notinmyhead@gmail.com">notinmyhead@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I'm wondering if there is way to interactively change brightness and contrast of an image displayed in render windows. I'd like to program it in a custom interactorstyle.<br>
><br>
> Thanks<br>
> Ale<br>
><br>
> vtkInteractorStyleImage already has some of that functionality:<br>
> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/InteractWithImage" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/InteractWithImage</a><br>
><br>
> You can subclass it (here is how: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents" target="_blank">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.<br>
><br>
> David<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>