<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Resample a volume data using vtkProbeFilter</TITLE>

<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=513232709-24092003><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=513232709-24092003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=513232709-24092003><FONT face=Arial color=#0000ff 
size=2>JB</FONT></SPAN></DIV>
<DIV><SPAN class=513232709-24092003></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Xianjin Yang 
  [mailto:Yang@AGIUSA.COM]<BR><B>Sent:</B> 23 September 2003 21:01<BR><B>To:</B> 
  'vtkusers@vtk.org'<BR><B>Subject:</B> [vtkusers] Resample a volume data using 
  vtkProbeFilter<BR><BR></FONT></DIV>
  <P><FONT face=Arial size=2>Hi vtkusers,</FONT> </P>
  <P><FONT face=Arial size=2>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.</FONT></P>
  <P><FONT face=Arial size=2>In VTK/Examples/Annotation/Tcl/xyPlot.tcl, 
  vtkLineSource is used to sample a vtkPolyData along a line.</FONT> </P>
  <P><FONT face=Arial size=2>In 
  VTK/Examples/VolumeRendering/Tcl/volSimpleLOD.tcl, vtkPlaneSource is used to 
  sample a vtkPolyData on a plane.</FONT> </P>
  <P><FONT face=Arial size=2>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</FONT> <FONT 
  face="Times New Roman">vtkTransformPolyDataFilter. How do I get a vtkImageData 
  by probing? Do I have to probe one plane at a time and assemble vtkImageData 
  manually.</FONT></P>
  <P><FONT face="Times New Roman">Thank you for your advice.</FONT> <BR><FONT 
  face="Times New Roman">Yang</FONT> <BR><FONT 
  face="Times New Roman">&nbsp;</FONT> </P></BLOCKQUOTE></BODY></HTML>