public class BinaryMomentsOfInertia extends Object
Constructor and Description |
---|
BinaryMomentsOfInertia(DeformableMesh3D mesh,
MeshImageStack stack) |
Modifier and Type | Method and Description |
---|---|
double[] |
getCenterOfMass()
center of mass:
c_x = sum_i [x_i m_i] / sum_i [m_i]
c_y = sum_i[ y_i m_i] / sum_i [m_i]
c_z = sum_i[ z_i m_i] / sum_i [m_i]
|
List<double[]> |
getEigenVectors()
Returns the list of eigen vectors, and the eigen values.
|
double[] |
getInertialMatrix()
Moments of inertia.
|
static void |
main(String[] args)
Create an image and a mesh
|
double |
measureAverageIntensity() |
static void |
reactangleCheck(String[] args) |
static void |
twoSphereCheck() |
double |
volume() |
public BinaryMomentsOfInertia(DeformableMesh3D mesh, MeshImageStack stack)
public double[] getCenterOfMass()
public double[] getInertialMatrix()
public List<double[]> getEigenVectors()
public static void main(String[] args)
args
- public static void reactangleCheck(String[] args)
public static void twoSphereCheck()
public double measureAverageIntensity()
public double volume()
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.