<meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">On Thu, Oct 7, 2010 at 5:06 AM, Luca Penasa <span dir="ltr"><<a href="mailto:luca.penasa@email.it">luca.penasa@email.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi everybody,<br>
i have a set of point as unstructured grid. these points are laying on<br>
a plane (eg a plane with normal [1,0,0]) into the 3d space. i need to<br>
transform this point set to an image (maybe i want a numpy matrix). I<br>
see there are some functions of splattering (like vtkFastSplattering or<br>
others) based on IDW or gaussian kernels, does anybody have some sample<br>
code or could help me in this problem? I think that these algorithms<br>
give a 3d image as output? isn't it? how could i extract a numpy<br>
two-dimensional matrix from that?<br>
<br>
<br>
hope the problem is well exposed.<br>
thanks!<br><br></blockquote><div><br></div><div>I think this should do what you're looking for: </div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/QuantizePolyDataPoints">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/QuantizePolyDataPoints</a><br clear="all">
<br><div>David </div></div>