[vtkusers] [VtkEdge] vtkColorTransferFunction of lungs
Lisa Avila
lisa.avila at kitware.com
Thu Mar 5 17:05:39 EST 2009
Hello Wassim,
Are you trying to view the lungs as a surface, or transparently? I
assume your data is CT?
The best way to "find" a good transfer function is with an interactive
GUI for adjusting transfer function nodes. You could try downloading the
trial version of VolView 3 from the Kitware web site, adjust the
transfer function interactively until you find a good one, then copy out
the node values into your program. That is what I almost always do when
I have to do a task like this - there is usually enough variation in
scan parameters that you can't really say "this hardcoded function will
be the best to show lungs in all CT data". Would be nice if that worked. :-)
If you are still having problems after trying something interactive to
help you, let me know.
Lisa
wassim_belhadj at topnet.tn wrote:
> Hi,
>
> I'm using VTk/VTKEdge for lungs Volume rendering.
>
> My problem is that I have not found the appropriate
> vtkColorTransferFunction of lungs.
>
> Most of the examples provide vtkColorTransferFunction and
> vtkPiecewiseFunction functions of muscles, bones, skin but not lungs.
>
> Bellow my transfer function that I used to display Lungs.
>
> opacityFun->AddPoint(-960,0.0);
> opacityFun->AddPoint(-950, 1.0);
> opacityFun->AddPoint(-550,1.0 );
> opacityFun->AddPoint(-500,0.3 );
> opacityFun->AddPoint(-450, 0.0);
> opacityFun->AddPoint(-300, 0.0);
>
> Can someone HELP ME?
>
> Best regards,
> wassim
> _______________________________________________
> VtkEdge mailing list
> VtkEdge at vtkedge.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/vtkedge
>
>
More information about the vtkusers
mailing list