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

Pauli Virtanen pav@iki...
Fri Sep 23 01:32:17 CDT 2011

Fri, 23 Sep 2011 07:40:10 +0200, Andrej Kobler wrote:
> I need the 3rd coordinate value after selecting the NN in 2D. You
> suggestion could be OK, if you know of a way to conserve the links
> between 2D points and their coordinate values in the 3rd dimension.

KDTree.query returns the indices of the points, so the link is preserved.

Pauli Virtanen

More information about the SciPy-User mailing list