[vtkusers] Using Volume Renderings Piecewise opacity function with vtkImageViewer2

Andaharoo Andx_roo at live.com
Fri Jul 7 20:53:51 EDT 2017


Currently I am using vtkImageViewer2 to display the slices of a volume. Works
alright but doesn't handle rotations all that well. Right now I want to
apply my transfer function used in volume rendering to these slices. To do
this I could simply give the vtkColorTransferFunction to the image actors
property and it would work like so:

imageViewer->GetImageActor()->GetProperty()->SetLookupTable(colorTransferFunction);

Now I'm looking to apply the opacity as well which is defined separately as
a vtkPiecewiseFunction. Is there an easier way to do this without manually
creating a lookup table from the two functions?



--
View this message in context: http://vtk.1045678.n5.nabble.com/Using-Volume-Renderings-Piecewise-opacity-function-with-vtkImageViewer2-tp5743930.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list