public class EllipsoidFitter extends Object
Adapted from Yury Petrov's Ellipsoid Fit MATLAB function and KalebKE ellipsoidfit.
| Modifier and Type | Class and Description |
|---|---|
static class |
EllipsoidFitter.Ellipsoid
The results of fitting an ellipsoid to a mesh or a collection of points.
|
| Constructor and Description |
|---|
EllipsoidFitter() |
| Modifier and Type | Method and Description |
|---|---|
static EllipsoidFitter.Ellipsoid |
fit(Iterable<? extends RealLocalizable> points,
int nPoints)
Fit an ellipsoid to a collection of 3D points.
|
static EllipsoidFitter.Ellipsoid |
fit(Mesh mesh)
Fit an ellipsoid to the convex-Hull of a 3D mesh.
|
static EllipsoidFitter.Ellipsoid |
fitOnConvexHull(Mesh mesh)
Fit an ellipsoid to a 3D mesh, assuming it is the convex-Hull.
|
public static final EllipsoidFitter.Ellipsoid fit(Mesh mesh)
mesh - the mesh to fit.public static final EllipsoidFitter.Ellipsoid fitOnConvexHull(Mesh mesh)
mesh - the convex-Hull of the mesh to fit.public static EllipsoidFitter.Ellipsoid fit(Iterable<? extends RealLocalizable> points, int nPoints)
points - an iterable over the points to fit.nPoints - the number of points to include in the fit. The fit will
consider at most the first nPoints of the iterable, or all the
points in the iterable, whatever comes first.Copyright © 2016–2023 ImgLib2. All rights reserved.