The convex hull of a P2D polygon can be used for visibility algorithms in stealth games. Converting a tree’s canopy PNG to P2D allows AI guards to "see" around semi-transparent foliage.
Using algorithms (such as Canny or Sobel) to find the boundaries of the image. png to p2d converter
Run: