Class EllipsoidFactory

Object
EllipsoidFactory

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

    Modifier and Type
    Method
    Description
    static Ellipsoid
    createMarkEllipsoidLeastSquares(CheckedSupplier<List<Point3i>, CreateException> opPoints, Dimensions dimensions, boolean suppressZCovariance, double shell)
    Creates a Ellipsoid using least-squares fitting to a supplied list of points.
    static Ellipsoid
    createMarkEllipsoidLeastSquares(ObjectMask object, Dimensions dimensions, boolean suppressZCovariance, double shell)
    Creates a Ellipsoid using least-squares fitting to the points on the outline of an ObjectMask.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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