[vtkusers] interactively (visually) change Brightness and Contrast

David Doria daviddoria at gmail.com
Tue Nov 6 10:52:02 EST 2012


On Tue, Nov 6, 2012 at 10:43 AM, Alessandro <notinmyhead at gmail.com> wrote:

> Hello,
>
> 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.
>
> Thanks
> Ale
>

vtkInteractorStyleImage already has some of that functionality:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/InteractWithImage

You can subclass it (here is how:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents (that
example does not use vtkInteractorStyleImage, but should give you the idea)
) to implement custom functionality.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121106/86af65af/attachment.htm>


More information about the vtkusers mailing list