<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>I agree.<br><br>However, I was asking because the documentation says it should do it, (but I can't work out how), and if it's done in openGL it will be faster than if I do it on the CPU, and also, it should be fewer lines of code, if it has already been implemented.<br><br>Thanks<br><br>Matt<br><br>----- "Shashwath T.R." &lt;trshash@gmail.com&gt; wrote:
<br>&gt; Why would you need a special method? Just snap your input point to the image grid, and pick up the value there...<br>&gt; <br>&gt; Regards,<br>&gt; Shash<br>&gt; <br>&gt; <div class="gmail_quote">&gt; On Tue, Jul 20, 2010 at 5:18 PM, Matt Clarkson <span dir="ltr">&lt;<a href="mailto:clarkson@drc.ion.ucl.ac.uk" target="_blank">clarkson@drc.ion.ucl.ac.uk</a>&gt;</span> wrote:<br>&gt; 
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: Arial; font-size: 10pt; color: rgb(0, 0, 0);">&gt; <span style="font-family: arial,helvetica,sans-serif;">Hi there,<br>&gt; 
<br>&gt; I'm
 following this example:<br>&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Images/PickingAPixel" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Images/PickingAPixel</a><br>&gt; <br>&gt; However,
 at the point:</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">this</span><span style="font-family: arial,helvetica,sans-serif;">-</span><span style="font-family: arial,helvetica,sans-serif;">&gt;</span><span style="font-family: arial,helvetica,sans-serif;">PointData</span><span style="font-family: arial,helvetica,sans-serif;">-</span><span style="font-family: arial,helvetica,sans-serif;">&gt;</span><span style="font-family: arial,helvetica,sans-serif;">InterpolatePoint</span><span style="font-family: arial,helvetica,sans-serif;">(</span><span style="font-family: arial,helvetica,sans-serif;"> pd, </span><span style="font-family: arial,helvetica,sans-serif;">0</span><span style="font-family: arial,helvetica,sans-serif;">, cell</span><span style="font-family: arial,helvetica,sans-serif;">-</span><span style="font-family: arial,helvetica,sans-serif;">&gt;</span><span style="font-family: arial,helvetica,sans-serif;">PointIds, weights </span><span style="font-family: arial,helvetica,sans-serif;">)</span><span style="font-family: arial,helvetica,sans-serif;">;</span><br style="font-family: arial,helvetica,sans-serif;">
<pre style="font-family: arial,helvetica,sans-serif;">how would I do NearestNeighbour interpolation? It currently appears to be linear?<br>&gt; <br>&gt; I have tried looking at the doxygen for vtkDataSetAttributes, and there is some mention of setting the interpolation but I don't understand what I'm meant to set on what. Please can any one help me?<br>&gt; 
<br>&gt; Many thanks in advance<br>&gt; <br>&gt; Matt</pre><span><br>&gt; <div><div>------------------------------------------------------<br>&gt; Matt Clarkson Ph.D.<br>&gt; Senior Research Associate<br>&gt;  <a href="mailto:m.clarkson@ucl.ac.uk" target="_blank">m.clarkson@ucl.ac.uk</a><br>&gt; 
<br>&gt; Centre For Medical Image Computing<br>&gt; <a href="http://cmic.cs.ucl.ac.uk/" target="_blank">http://cmic.cs.ucl.ac.uk/</a><br>&gt; Tel: 020 7679 0240<br>&gt; Fax: 020 7679 0255 <br>&gt; <br>&gt; Dementia Research Centre<br>&gt; <a href="http://dementia.ion.ucl.ac.uk/" target="_blank">http://dementia.ion.ucl.ac.uk/</a><br>&gt; 
Tel: 08451 555 000 ext. 723653<br>&gt; Fax: 020 7676 2066<br>&gt; ------------------------------------------------------</div></div><br>&gt; </span></div></div><br>&gt; _______________________________________________<br>&gt; 
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt; 
<br>&gt; 
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt; 
<br>&gt; 
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; 
<br>&gt; 
Follow this link to subscribe/unsubscribe:<br>&gt; 
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt; 
<br>&gt; </blockquote></div><br>&gt; 
</div></body></html>