[vtkusers] Linear/Nearest Neighbour interpolation of vtkPointData

Matt Clarkson clarkson at drc.ion.ucl.ac.uk
Tue Jul 20 07:48:49 EDT 2010


Hi there, 

I'm following this example: 
http://www.vtk.org/Wiki/VTK/Examples/Images/PickingAPixel 

However, at the point: 
this - > PointData - > InterpolatePoint ( pd, 0 , cell - > PointIds, weights ) ; 
how would I do NearestNeighbour interpolation? It currently appears to be linear? 

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? 

Many thanks in advance 

Matt 


------------------------------------------------------ 
Matt Clarkson Ph.D. 
Senior Research Associate 
m.clarkson at ucl.ac.uk 

Centre For Medical Image Computing 
http://cmic.cs.ucl.ac.uk/ 
Tel: 020 7679 0240 
Fax: 020 7679 0255 

Dementia Research Centre 
http://dementia.ion.ucl.ac.uk/ 
Tel: 08451 555 000 ext. 723653 
Fax: 020 7676 2066 
------------------------------------------------------ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100720/7b24e3db/attachment.htm>


More information about the vtkusers mailing list