[vtkusers] How to adjust VTK Image brightness and contrast with QT Slider
Jothybasu Selvaraj
jothybasu at gmail.com
Mon Feb 13 05:06:58 EST 2012
vtkImageShiftScale seems to be modifying the sclar values of the
vtkImageData. I would rather use an appropriate vtkLookupTable (modify the
range in the LUT) and use a vtkImageMapToColors to change the contrast and
brightness. Then connect the signal of slider to the slot.
It works fine for me at least.
I use QXTSpanSlider in QXT widgets, it has two sliders upper and lower
unlike QSlider.
Jothy
On Fri, Feb 10, 2012 at 8:11 PM, yarram <somasekhar.vit at gmail.com> wrote:
> Thanks for your reply, but I couldn't find anything related to image
> brightness and contrast. I actually want to control the image brightness
> and
> contrast with QT Slider. Can you provide me the code for this??
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/How-to-adjust-VTK-Image-brightness-and-contrast-with-QT-Slider-tp5473398p5473668.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120213/6576cb52/attachment.htm>
More information about the vtkusers
mailing list