[SciPy-User] 2D NN search in a 3D point cloud

Andrej Kobler andrej.kobler at gozdis.si
Thu Sep 22 08:13:57 EDT 2011


Hi,

 

in a cloud of XYZ points I'd like to search for nearest neighbors in XY
plane using scipy.spatial.KDTree/cKDTree. The problem is that KDTree.query
takes into account all the given dimensions, not just the desired subset of
dimensions. Is there a simple way to have data with 3 or more dimensions and
use only 2 for NN search?

 

Thanks,

 

Andrej

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110922/63d6fe92/attachment.html>


More information about the SciPy-User mailing list