public class ConvexHullUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static List<Point2i> |
convexHull2D(List<Point2i> points)
Like
convexHull2D(List, int) but uses a default minimum number of points. |
static List<Point2i> |
convexHull2D(List<Point2i> points,
int minNumberPoints)
Apply a convex-hull algorithm to filter a set of points.
|
static List<Point2i> |
pointsOnAllOutlines(ObjectCollection objects) |
static List<Point2i> |
pointsOnOutline(ObjectMask object) |
public static List<Point2i> convexHull2D(List<Point2i> points) throws OperationFailedException
convexHull2D(List, int)
but uses a default minimum number of points.OperationFailedException
public static List<Point2i> convexHull2D(List<Point2i> points, int minNumberPoints) throws OperationFailedException
Note the algorithm will return the input-points if there are too few points.
points
- points to filterminNumberPoints
- a minimum of number of points (before any convex hull filtering) that
must be found.OperationFailedException
- if the count variable becomes too high during calculationpublic static List<Point2i> pointsOnAllOutlines(ObjectCollection objects)
public static List<Point2i> pointsOnOutline(ObjectMask object) throws CreateException
CreateException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.