public class MeshStats extends Object
| Modifier and Type | Method and Description |
|---|---|
static RealPoint |
centroid(Mesh input)
Returns the centroid of the mesh, that is the center of gravity of its
volume.
|
static double |
compactness(Mesh mesh)
Returns the compactness of the mesh.
|
static double |
convexity(Mesh mesh)
Returns the convexity of a mesh.
|
static double |
convexity(Mesh mesh,
Mesh convexHull)
Returns the convexity of a mesh.
|
static double |
solidity(Mesh mesh)
Returns the solidity of a mesh.
|
static double |
solidity(Mesh mesh,
Mesh convexHull)
Returns the solidity of a mesh.
|
static double |
sphericity(Mesh mesh)
Returns the sphericity of a mesh.
|
static double |
surfaceArea(Mesh mesh)
Returns the surface area of a mesh.
|
static double |
volume(Mesh mesh)
Computes the volume of the specified mesh.
|
public static double volume(Mesh mesh)
public static double surfaceArea(Mesh mesh)
It is computed as the sum of the area of the outwards-facing triangles.
mesh - the input mesh.public static double solidity(Mesh mesh)
The solidity is computed as the ratio between the volume of the mesh and the volume of its convex hull.
mesh - the input mesh.public static double solidity(Mesh mesh, Mesh convexHull)
The solidity is computed as the ratio between the volume of the mesh and the volume of its convex hull.
mesh - the input mesh.convexHull - the convex hull of the input, if it has been pre-calculated.public static double convexity(Mesh mesh)
The convexity is computed as the ratio between the surface area of the mesh and the surface area of its convex hull.
mesh - the input mesh.public static double convexity(Mesh mesh, Mesh convexHull)
The convexity is computed as the ratio between the surface area of the convex hull and the surface area of the mesh.
mesh - the input mesh.convexHull - the convex hull of the input, if it has been pre-calculated.public static double sphericity(Mesh mesh)
The sphericity is computed as the ratio between the surface area of a sphere with the same volume that of the input, and the the surface area of the input mesh.
mesh - the input mesh.public static double compactness(Mesh mesh)
In the paper compactness is defined as area^3/volume^2. For
a sphere this is minimized and results in 36*PI. To get
values between (0,1] we use (36*PI)/(area^3/volume^2).
mesh - the input mesh.public static RealPoint centroid(Mesh input)
(As a side note, Meshes.center(Mesh) returns the center of
gravity of the mesh's surface.)
input - the input mesh.Copyright © 2016–2023 ImgLib2. All rights reserved.