Local maxima in a point cloud

前端 未结 3 1453
遇见更好的自我
遇见更好的自我 2021-02-06 19:04

I have a point cloud C, where each point has an associated value. Lets say the points are in 2-d space, so each point can be represented with the triplet (x, y, v).

I

3条回答
  •  旧时难觅i
    2021-02-06 19:23

    Use a 2D-tree (2D instance of a kD-tree). After N.Log(N) time preprocessing, It will allow you to perform fixed-radius near-neighbor searches around all your points in about Log(N) + K time (K neighbors found on average), for a total of N.Log(N)+ K.N. It will perfectly live with the Manhattan distance.

提交回复
热议问题