<div dir="ltr">Hi Serseri, <div><br></div><div>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. <br></div><div><br></div><div>Thanks,</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 14, 2016 at 9:35 AM, serseri <span dir="ltr"><<a href="mailto:serhattural12@gmail.com" target="_blank">serhattural12@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
How can I get the value range of gradient values to use on volume rendering?<br>
I try to find optimal values for my samples.<br>
<br>
An example usega of gradient opacity function:<br>
<a href="http://www.paraview.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext" rel="noreferrer" target="_blank">http://www.paraview.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext</a><br>
<br>
vtkPiecewiseFunction * volumeGradientOpacity = vtkPiecewiseFunction::New();<br>
volumeGradientOpacity->AddPoint(0,   0.0);<br>
volumeGradientOpacity->AddPoint(90,  0.5);<br>
volumeGradientOpacity->AddPoint(100, 1.0);<br>
volumeProperty->SetGradientOpacity(volumeGradientOpacity);<br>
<br>
Thanks.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Volume-Rendering-Gradient-Opacity-Value-Range-tp5736565.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Volume-Rendering-Gradient-Opacity-Value-Range-tp5736565.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div></div></div>