[vtkusers] Gradient Magnitudes

Glen Lehmann glehmann at imaging.robarts.ca
Thu Sep 16 15:36:36 EDT 2004


Hi Lindsay,

I believe (because I've never had to do it myself) that if you build a 
lookup table of your desired colour map you should be able to use 
vtkImageMapToColors to do this.

Cheers,
Glen

On Sep 16, 2004, at 3:14 PM, Lindsey McAninch wrote:

> Hi all-
>
> I have a 3-d volume of C1 of the cervical spine.  I am trying to 
> calculate the gradient magnitudes of the image and then do a color 
> mapping to the image for the gradient at each point.  I was wondering 
> how I could do this.  I know how to get the magnitude but not how to 
> color the image according to what the magnitude of the points are. If 
> anyone could give me a pointer as to what I should use or some bits of 
> code, that would be very helpful.  Thanks!
>
> Lindsey McAninch
> University of Utah
> Scientific Computer and Imaging Institute
> 50 S. Central Campus Dr. Salt Lake City, UT 84112
>
> lindsey at sci.utah.edu
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list