public class Ellipsoid extends Object
| Constructor and Description | 
|---|
Ellipsoid(double xc,
         double yc,
         double zc,
         double r1,
         double r2,
         double r3,
         double phi,
         double theta,
         double psi)
Creates a new 3D Ellipsoid 
 | 
Ellipsoid(Point3D center,
         double r1,
         double r2,
         double r3)
Creates a new 3D Ellipsoid parallel to the three main axes. 
 | 
Ellipsoid(Point3D center,
         double r1,
         double r2,
         double r3,
         double phi,
         double theta,
         double psi)
Creates a new 3D Ellipsoid 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Point3D | 
center()  | 
static Point3D[] | 
centers(Ellipsoid[] ellipsoids)
Initializes center array from ellipsoid array. 
 | 
static double[][] | 
elongations(Ellipsoid[] ellipsoids)
Computes the three elongation factors for an array of ellipsoids. 
 | 
double | 
phi()  | 
double | 
psi()  | 
double | 
radius1()  | 
double | 
radius2()  | 
double | 
radius3()  | 
double | 
theta()  | 
public Ellipsoid(Point3D center, double r1, double r2, double r3)
center - the center of the ellipsoidr1 - the length of the largest semi-axisr2 - the length of the second largest semi-axisr3 - the length of the smallest semi-axispublic Ellipsoid(Point3D center, double r1, double r2, double r3, double phi, double theta, double psi)
center - the center of the ellipsoidr1 - the length of the largest semi-axisr2 - the length of the second largest semi-axisr3 - the length of the smallest semi-axisphi - the azimut of the main axis, in degreestheta - the elevation of the main axis, in degreespsi - the roll of the ellipsoid around the main axis, in degrees.public Ellipsoid(double xc,
                 double yc,
                 double zc,
                 double r1,
                 double r2,
                 double r3,
                 double phi,
                 double theta,
                 double psi)
xc - the x-coordinate of ellipsoid centeryc - the y-coordinate of ellipsoid centerzc - the z-coordinate of ellipsoid centerr1 - the length of the largest semi-axisr2 - the length of the second largest semi-axisr3 - the length of the smallest semi-axisphi - the azimut of the main axis, in degreestheta - the elevation of the main axis, in degreespsi - the roll of the ellipsoid around the main axis, in degrees.public static final Point3D[] centers(Ellipsoid[] ellipsoids)
ellipsoids - an array of ellipsoidspublic static final double[][] elongations(Ellipsoid[] ellipsoids)
 ImageStack labelImage = ...
 int[] labels = LabelImages.findAllLabels(image);
 Calibation calib = new Calibration();
 Ellipsoid[] ellipsoids = new EquivalentEllipsoid().analyzeRegions(labelImage, labels, calib);
 double[][] elongations = Ellipsoid.elongations(ellipsoids);
 ellipsoids - an array of ellipsoidspublic Point3D center()
public double radius1()
public double radius2()
public double radius3()
public double phi()
public double theta()
public double psi()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.