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

Andrej Kobler andrej.kobler@gozdis...
Thu Sep 22 07:13:57 CDT 2011



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?






-------------- 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