[vtkusers] Linear/Nearest Neighbour interpolation of vtkPointData
Matt Clarkson
clarkson at drc.ion.ucl.ac.uk
Tue Jul 20 10:07:15 EDT 2010
I agree.
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.
Thanks
Matt
----- "Shashwath T.R." <trshash at gmail.com> wrote:
> Why would you need a special method? Just snap your input point to the image grid, and pick up the value there...
>
> Regards,
> Shash
>
>
> On Tue, Jul 20, 2010 at 5:18 PM, Matt Clarkson < clarkson at drc.ion.ucl.ac.uk > wrote:
>
> 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
> ------------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100720/7392c2b1/attachment.htm>
More information about the vtkusers
mailing list