ConvexHullAnalyzer Class Documentation#
Package: sc.fiji.snt.analysis
Class for Convex Hull measurements of a Tree.
Methods#
Getters Methods#
- get(String)#
Gets the value of a specific convex hull metric.
Retrieves the computed value for the specified metric name. The metric must be one of the supported metrics returned by supportedMetrics().
- getAnalysis()#
Gets all computed convex hull analysis metrics.
Returns a map containing all the computed convex hull metrics and their values. The metrics are computed lazily and cached for subsequent calls. If the hull cannot be computed, all metrics return NaN.
- getBoundarySize()#
Gets the boundary size (perimeter for 2D hulls or surface area for 3D hulls) of the convex hull.
- getBoxivity()#
Gets the boxivity of the convex hull, which measures how box-like the convex hull is. Values closer to 1 indicate a more box-like shape.
- getCancelReason()#
- getCentroid()#
- getCompactness()#
- getContext()#
- getEccentricity()#
- getElongation()#
Gets the elongation of the convex hull, which measures how elongated the convex hull is. Higher values indicate more elongated shapes.
- getHull()#
Gets the convex hull object being analyzed. The hull is initialized if needed.
- getRoundness()#
Gets the roundness of the convex hull, which measures how round or circular the convex hull is. Values closer to 1 indicate a more round shape.
- getSize()#
Gets the size (area or volume) of the convex hull, which is the area for 2D hulls or the volume for 3D hulls.
- getTree()#
Gets the tree being analyzed.
- getUnit(String)#
Returns the physical unit associated with the specified metric.
- isCanceled()#
Setters Methods#
- setContext(Context)#
- setLabel(String)#
Sets the optional description for the analysis
Other Methods#
- cancel(String)#
- context()#
- dump(SNTTable)#
- static main(String;)
Main method for testing and demonstration purposes.
Creates a ConvexHullAnalyzer instance using demo data and runs the analysis. This method is primarily used for development and debugging.
- run()#
- static supportedMetrics()
Gets the list of metrics supported by ConvexHullAnalyzer.