[vtkusers] Volume Rendering Gradient Opacity Value Range
Aashish Chaudhary
aashish.chaudhary at kitware.com
Tue Feb 16 10:26:10 EST 2016
Hi Serseri,
In many ways it depends on your data and what you are trying to visualize.
Depending on the dataset, you would likely to know the range of data values
and general idea on where you are expecting to see bigger or smaller change
in gradients. Mostly, I have seen that a interactive editor is most useful
for the users. I am not aware of any existing code in VTK to give you a
better idea.
Thanks,
On Sun, Feb 14, 2016 at 9:35 AM, serseri <serhattural12 at gmail.com> wrote:
> Hi,
>
> How can I get the value range of gradient values to use on volume
> rendering?
> I try to find optimal values for my samples.
>
> An example usega of gradient opacity function:
>
> http://www.paraview.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext
>
> vtkPiecewiseFunction * volumeGradientOpacity = vtkPiecewiseFunction::New();
> volumeGradientOpacity->AddPoint(0, 0.0);
> volumeGradientOpacity->AddPoint(90, 0.5);
> volumeGradientOpacity->AddPoint(100, 1.0);
> volumeProperty->SetGradientOpacity(volumeGradientOpacity);
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Volume-Rendering-Gradient-Opacity-Value-Range-tp5736565.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
>
--
*| Aashish Chaudhary | Technical Leader | Kitware Inc. *
*| http://www.kitware.com/company/team/chaudhary.html
<http://www.kitware.com/company/team/chaudhary.html>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160216/69f11964/attachment.html>
More information about the vtkusers
mailing list