findNearestNeighbors
R2026bFind nearest neighbors of a point in point cloud
Syntax
Description
[
returns the indices,dists] = findNearestNeighbors(ptCloud,point,K)indices for the K-nearest neighbors of a query point in the
input point cloud. ptCloud can be an unorganized or organized point
cloud. The K-nearest neighbors of the query point are computed by using the Kd-tree based
search algorithm. This function requires a Computer Vision Toolbox™ license.
Note
The object functions of the pointCloud object require Point Cloud Toolbox™
[
specifies options using one or more name-value arguments in addition to the input arguments
in the preceding syntaxes.indices,dists] = findNearestNeighbors(___,Name,Value)
Input Arguments
Name-Value Arguments
Output Arguments
References
[1] Muja, M. and David G. Lowe. "Fast Approximate Nearest Neighbors with Automatic Algorithm Configuration". In VISAPP International Conference on Computer Vision Theory and Applications. 2009. pp. 331–340.