/** * Returns the convex hull of the blob. * @return The convex hull as polygon */ public Polygon getConvexHull() { PolygonRoi roi = new PolygonRoi(outerContour, Roi.POLYGON); Polygon hull = roi.getConvexHull(); if(hull==null){ return getOuterContour(); } return hull; }