Object
EllipsoidFactory

public class EllipsoidFactory extends Object
Factory for creating Ellipsoid objects using least-squares fitting.
  • Method Details

    • createMarkEllipsoidLeastSquares

      public static Ellipsoid createMarkEllipsoidLeastSquares(ObjectMask object, Dimensions dimensions, boolean suppressZCovariance, double shell) throws CreateException
      Creates a Ellipsoid using least-squares fitting to the points on the outline of an ObjectMask.
      Parameters:
      object - object-mask
      dimensions - the dimensions of the scene the object is contained in
      suppressZCovariance - whether to suppress the covariance in the z-dimension when doing least squares fitting
      shell - shell for the mark that is created
      Returns:
      the created Ellipsoid
      Throws:
      CreateException - if the ellipsoid creation fails
    • createMarkEllipsoidLeastSquares

      public static Ellipsoid createMarkEllipsoidLeastSquares(CheckedSupplier<List<Point3i>,CreateException> opPoints, Dimensions dimensions, boolean suppressZCovariance, double shell) throws CreateException
      Creates a Ellipsoid using least-squares fitting to a supplied list of points.
      Parameters:
      opPoints - supplier for the list of points to fit
      dimensions - the dimensions of the scene the object is contained in
      suppressZCovariance - whether to suppress the covariance in the z-dimension when doing least squares fitting
      shell - shell for the mark that is created
      Returns:
      the created Ellipsoid
      Throws:
      CreateException - if the ellipsoid creation fails