Package sc.fiji.snt.analysis
Class ConvexHull2D
java.lang.Object
sc.fiji.snt.analysis.AbstractConvexHull
sc.fiji.snt.analysis.ConvexHull2D
Computes the convex hull of a set of 2D points.
- Author:
- Cameron Arshadi
-
Field Summary
Fields inherited from class sc.fiji.snt.analysis.AbstractConvexHull
boundarySize, opService, points, size -
Constructor Summary
ConstructorsConstructorDescriptionConvexHull2D(Collection<T> points) ConvexHull2D(org.scijava.Context context, Collection<T> points) -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the perimeter (2D) or surface area (3D) of this convex hull.voidcompute()Computes the convex hull from the input points.net.imglib2.roi.geom.real.Polygon2Dintersection(AbstractConvexHull... convexHulls) Returns the intersection of this convex hull with the given hull(s).static voiddoublesize()Returns the area (2D) or volume (3D) of this convex hull.Methods inherited from class sc.fiji.snt.analysis.AbstractConvexHull
intersectionBox
-
Constructor Details
-
ConvexHull2D
-
ConvexHull2D
-
-
Method Details
-
compute
public void compute()Description copied from class:AbstractConvexHullComputes the convex hull from the input points.- Specified by:
computein classAbstractConvexHull
-
size
public double size()Description copied from class:AbstractConvexHullReturns the area (2D) or volume (3D) of this convex hull.- Specified by:
sizein classAbstractConvexHull
-
boundarySize
public double boundarySize()Description copied from class:AbstractConvexHullReturns the perimeter (2D) or surface area (3D) of this convex hull.- Specified by:
boundarySizein classAbstractConvexHull
-
getPolygon
public net.imglib2.roi.geom.real.Polygon2D getPolygon() -
intersection
Description copied from class:AbstractConvexHullReturns the intersection of this convex hull with the given hull(s).- Specified by:
intersectionin classAbstractConvexHull
-
main
-