<div class="gmail_quote">On Tue, Oct 11, 2011 at 1:10 AM, PedroVTK <span dir="ltr">&lt;<a href="mailto:pedro.rodrigues17@gmail.com">pedro.rodrigues17@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I would like to render a 3D dicom volume using vtk with different colors<br>
according to the image histogram. However, when I use the<br>
vtkColorTransferFunction and the method<br>
<br>
OBJECT-&gt;AddRGBSegment( double x1, double r1, double g1, double b1, double<br>
x2, double r2, double g2, double b2 ),<br>
<br>
I only add two RGB points to the volume according x1 and x2. I would like to<br>
know if it is possible to add a color gradient for all the points between x1<br>
and x2.<br></blockquote><div><br></div>It is a gradient (a linear ramp between the two points), the color being linearly interpolated, in the color space that you&#39;ve set. There&#39;s also the ability to have a continuous gradient based on hermite functions. </div>
<div class="gmail_quote"><br></div><div class="gmail_quote">If you wish to set your own set of values, see vtkColorTransferFunction::BuildFunctionFromTable.</div><div class="gmail_quote"><br></div><div class="gmail_quote">
--</div><div class="gmail_quote">karthik<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Kind regards,<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Volume-Rendering-Gradient-tp4889487p4889487.html" target="_blank">http://vtk.1045678.n5.nabble.com/Volume-Rendering-Gradient-tp4889487p4889487.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</font></blockquote></div><br>