[vtkusers] Profile an image?

Amy Henderson amy.henderson at kitware.com
Thu Feb 3 13:20:42 EST 2005


Use vtkLineSource to create a line with the 2 selected end points.  (The 
Resolution variable will determine at how many evenly-spaced points along 
the line you will sample the image.)  Then use vtkProbeFilter with your 
image data as the Input and the output of vtkLineSource as the Source.

- Amy

At 12:56 PM 2/3/2005, Beau Sapach wrote:
>Hello everyone,
>
>I'd like to be able to draw a line over an image and then plot a profile of
>the scalars that the line intersects with.  Drawing the line etc is easy,
>basically I need a function that takes the 2 end points of the line and
>returns the points and scalars that the line intersects, does such a
>function already exist?
>
>----------------------------------------
>Beau Sapach
>Network Administrator
>Biomedical Engineering
>University of Alberta
>Phone: (780) 492-8098
>Fax: (780) 492-8259
>Email: beau.sapach at ualberta.ca
>----------------------------------------
>
>_______________________________________________
>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





More information about the vtkusers mailing list