Interface ConvexHull

Convex Hull polygon of a mask.

interface ConvexHull {
    perimeter: number;
    points: Point[];
    surface: number;
}

Properties

perimeter: number

Perimeter of the convex Hull.

points: Point[]

Vertices of the convex Hull in clockwise order.

surface: number

Surface of the convex Hull.