Package sc.fiji.snt.analysis
Class AbstractConvexHull
java.lang.Object
sc.fiji.snt.analysis.AbstractConvexHull
- Direct Known Subclasses:
ConvexHull2D,ConvexHull3D
Parent class for convex hull analysis
- Author:
- Cameron Arshadi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected net.imagej.ops.OpServiceprotected final Collection<? extends SNTPoint> protected double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConvexHull(Collection<T> points) protectedAbstractConvexHull(org.scijava.Context context, Collection<T> points) -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleReturns the perimeter (2D) or surface area (3D) of this convex hull.abstract voidcompute()Computes the convex hull from the input points.abstract AbstractConvexHullintersection(AbstractConvexHull... convexHull) Returns the intersection of this convex hull with the given hull(s).intersectionBox(AbstractConvexHull... convexHulls) Returns the bounding-box intersection of this hull with the given hull(s).abstract doublesize()Returns the area (2D) or volume (3D) of this convex hull.
-
Field Details
-
opService
protected net.imagej.ops.OpService opService -
points
-
size
protected double size -
boundarySize
protected double boundarySize
-
-
Constructor Details
-
AbstractConvexHull
-
AbstractConvexHull
-
-
Method Details
-
compute
public abstract void compute()Computes the convex hull from the input points. -
size
public abstract double size()Returns the area (2D) or volume (3D) of this convex hull. -
boundarySize
public abstract double boundarySize()Returns the perimeter (2D) or surface area (3D) of this convex hull. -
intersection
Returns the intersection of this convex hull with the given hull(s). -
intersectionBox
Returns the bounding-box intersection of this hull with the given hull(s).
-