[vtkusers] Using Volume Renderings Piecewise opacity function with vtkImageViewer2

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Mon Jul 10 11:14:52 EDT 2017


I don’t think so. You’ll have to create a lookup table manually from the
two functions.
​

On Fri, Jul 7, 2017 at 8:54 PM Andaharoo <Andx_roo at live.com> wrote:

> 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.
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-- 
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170710/7afa6011/attachment.html>


More information about the vtkusers mailing list