Convex hull and defects detection