[vtkusers] Resample a volume data using vtkProbeFilter

John Biddiscombe john.biddiscombe at mirada-solutions.com
Wed Sep 24 05:28:19 EDT 2003


you can use an imagedata as input to the probefilter. the points of each pixel will be used as the probe points. Then you can get the scalrs out and assign them to another imagedata with the same dimensions/scaling/origin. Voila, finished.
 
JB
 

-----Original Message-----
From: Xianjin Yang [mailto:Yang at AGIUSA.COM]
Sent: 23 September 2003 21:01
To: 'vtkusers at vtk.org'
Subject: [vtkusers] Resample a volume data using vtkProbeFilter



Hi vtkusers, 

I have a volume data set, that is, a vtkPolyData with (x, y, z, scalar). Now I have to convert this data set into vtkImageData for volume rendering. One way to go is to use vtkProbeFilter.

In VTK/Examples/Annotation/Tcl/xyPlot.tcl, vtkLineSource is used to sample a vtkPolyData along a line. 

In VTK/Examples/VolumeRendering/Tcl/volSimpleLOD.tcl, vtkPlaneSource is used to sample a vtkPolyData on a plane. 

To resample a volume data for a vtkImageData, should I use vtkCubeSource instead? I found that vtkCubeSource has no method to SetResolution(x, y, z) to determine the sample intervals. The above two examples lead to the output of vtkPolyData with the help of vtkTransformPolyDataFilter. How do I get a vtkImageData by probing? Do I have to probe one plane at a time and assemble vtkImageData manually.

Thank you for your advice. 
Yang 
  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030924/88a8e5ef/attachment.htm>


More information about the vtkusers mailing list