I have a set of points in 2D ( coordinates for x and y ), now I need to discard all the points that are not meaningful to me, and what I mean by that is that I'm only interested in the area that this points are tracing.
In short, this
it's supposed to produce this
question: what algorithm can do this kind of filtering on this points ?
You can use Graham Scan to compute Convex hull of the given points. Once you have all the points on the convex hull you can eliminate the others.
There are other algorithms as well for computing convex hull, but Graham scan is easy to implement and is O(n logn).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With