Why would you need a special method? Just snap your input point to the image grid, and pick up the value there...<br><br>Regards,<br>Shash<br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 5:18 PM, Matt Clarkson <span dir="ltr">&lt;<a href="mailto:clarkson@drc.ion.ucl.ac.uk">clarkson@drc.ion.ucl.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: Arial; font-size: 10pt; color: rgb(0, 0, 0);"><span style="font-family: arial,helvetica,sans-serif;">Hi there,<br>
<br>I&#39;m
 following this example:<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Images/PickingAPixel" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Images/PickingAPixel</a><br><br>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><br>I have tried looking at the doxygen for vtkDataSetAttributes, and there is some mention of setting the interpolation but I don&#39;t understand what I&#39;m meant to set on what. Please can any one help me?<br>
<br>Many thanks in advance<br><br>Matt</pre><span><br><div><div>------------------------------------------------------<br>Matt Clarkson Ph.D.<br>Senior Research Associate<br> <a href="mailto:m.clarkson@ucl.ac.uk" target="_blank">m.clarkson@ucl.ac.uk</a><br>
<br>Centre For Medical Image Computing<br><a href="http://cmic.cs.ucl.ac.uk/" target="_blank">http://cmic.cs.ucl.ac.uk/</a><br>Tel: 020 7679 0240<br>Fax: 020 7679 0255 <br><br>Dementia Research Centre<br><a href="http://dementia.ion.ucl.ac.uk/" target="_blank">http://dementia.ion.ucl.ac.uk/</a><br>
Tel: 08451 555 000 ext. 723653<br>Fax: 020 7676 2066<br>------------------------------------------------------</div></div><br></span></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
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>
<br>
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>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>