[vtk-developers] LookupTable + ImagePlaneWidget

Mohamed Ben Reguiga breguiga_mh at yahoo.fr
Tue May 2 10:39:01 EDT 2006


hello,
I'm using the vtkImagePlaneWidget in my project for a 3d recontitution use, under Qt.
but I'm not using the vtkViewer but an OpenGl widget (QGLWidget), so I recover the adresse of the image-buffer like following :
planeX=vtkImagePlaneWidget::New();
.....
uchar * Imgbuffer;
Imgbuffer =(uchar *)planeX->GetResliceOutput()->GetScalarPointer();
After that I create the image using Qt routines then I display its texture in the QGLWidget.
the problem that when I use the SetWindowLevel (double window, double level), the appearance of the image in QVTKwidget ( that I use for test) is changing while I'm changing the values of Window and level but when I recover the buffer of  the image nothing change.
So, is it possible to telle me , how can I recover the changer image by the lookupthable or how to recover the lookuptable and use after that to change my image.
thak you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20060502/dba55744/attachment.html>


More information about the vtk-developers mailing list