Class EllipsoidFitter

    • Constructor Detail

      • EllipsoidFitter

        public EllipsoidFitter()
    • Method Detail

      • fit

        public static final EllipsoidFitter.Ellipsoid fit​(Mesh mesh)
        Fit an ellipsoid to the convex-Hull of a 3D mesh.
        Parameters:
        mesh - the mesh to fit.
        Returns:
        the fit results.
      • fitOnConvexHull

        public static final EllipsoidFitter.Ellipsoid fitOnConvexHull​(Mesh mesh)
        Fit an ellipsoid to a 3D mesh, assuming it is the convex-Hull.
        Parameters:
        mesh - the convex-Hull of the mesh to fit.
        Returns:
        the fit results.
      • fit

        public static EllipsoidFitter.Ellipsoid fit​(Iterable<? extends RealLocalizable> points,
                                                    int nPoints)
        Fit an ellipsoid to a collection of 3D points.
        Parameters:
        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.
        Returns:
        the fit results.