[vtkusers] Volume Rendering - Gradient
Karthik Krishnan
karthik.krishnan at kitware.com
Tue Oct 11 00:57:55 EDT 2011
On Tue, Oct 11, 2011 at 1:10 AM, PedroVTK <pedro.rodrigues17 at gmail.com>wrote:
> Hello,
>
> I would like to render a 3D dicom volume using vtk with different colors
> according to the image histogram. However, when I use the
> vtkColorTransferFunction and the method
>
> OBJECT->AddRGBSegment( double x1, double r1, double g1, double b1, double
> x2, double r2, double g2, double b2 ),
>
> I only add two RGB points to the volume according x1 and x2. I would like
> to
> know if it is possible to add a color gradient for all the points between
> x1
> and x2.
>
It is a gradient (a linear ramp between the two points), the color being
linearly interpolated, in the color space that you've set. There's also the
ability to have a continuous gradient based on hermite functions.
If you wish to set your own set of values, see
vtkColorTransferFunction::BuildFunctionFromTable.
--
karthik
>
> Kind regards,
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Volume-Rendering-Gradient-tp4889487p4889487.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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111011/38a4b642/attachment.htm>
More information about the vtkusers
mailing list