Finding largest subset of points forming a convex polygon

前端 未结 4 790
名媛妹妹
名媛妹妹 2021-02-05 12:24

I\'m looking for an algorithm for finding largest subset of points (by largest i mean in number) that form a convex polygon from the given set of point. I think this might be so

4条回答
  •  隐瞒了意图╮
    2021-02-05 13:07

    You can use a delaunay triangulation and remove the longest edge and also the vertex. I use a similar algorithm to find the concave hull. You can find jan example based on population data @ http://www.phpdevpad.de/geofence. I have also wrote a php class concave-hull @ phpclasses.org.

提交回复
热议问题