[vtkusers] How to acces to gradient data in a volume mapper

tuo zhang zhangtuo123 at yahoo.com.cn
Tue Feb 19 06:05:29 EST 2008


Hi,
Have you tried calling Update() before you
GetGradient?


--- vincent elkouby <vincent_elkouby at yahoo.fr>:

> Hello,
> 
> some one does know how to access to gradient data in
> a vtkVolume Mapper?
> 
> I use a vtkFixedPointVolumeRayCastMapper. This class
> compute the volume gradient to render the volume.
> But I would like to access to the gradient data to
> filter it. There is to methods to get attributes
> from this class named: 
> 
>       unsigned short
> **gradNormal=volMapper->GetGradientNormal();
>       unsigned char **grad      
> =volMapper->GetGradientMagnitude();
> 
> But it's doesn't work or I don't know how it works.
> The both pointers are null.
> 
> PS: My soft is working.
> 
> 
> 
>      
>
______________________________________________________________________________
> 
> Yahoo! Mail : un mail innovant avec Messenger
> compatible Windows Live + stockage illimité.
http://mail.yahoo.fr>
_______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 



      ___________________________________________________________ 
雅虎邮箱传递新年祝福,个性贺卡送亲朋! 
http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline



More information about the vtkusers mailing list