[vtkusers] piecewise function for volume rendering

Kevin H. Hobbs hobbsk at ohiou.edu
Sun Jul 13 10:38:14 EDT 2008


On Saturday 12 July 2008 11:57:38 am amal / wrote:
> vtkpiecewisetransferfunction is the function responsable for adjusting the
> opasity of the reconstructed volume. 

Yes, that's correct.

> i want to use this function to set the 
> opasity of the back ground of my images to zero (transparent) so that only
> the part i want to see will be reconstructed.

<snip>

> vtkPiecewiseFunction opacitytransfer = new vtkPiecewiseFunction();
> opacitytransfer.ClampingOff();
>
> opacitytransfer.AddPoint(0, 0.0);
> opacitytransfer.AddPoint(255,0.0);

You might want to try:

opacitytransfer.AddPoint(0,     0.0);
opacitytransfer.AddPoint(8,     0.0);
opacitytransfer.AddPoint(255, 1.0);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080713/6a31aac0/attachment.pgp>


More information about the vtkusers mailing list