Class EllipsoidFactory
Object
EllipsoidFactory
Factory for creating
Ellipsoid objects using least-squares fitting.-
Method Summary
Modifier and TypeMethodDescriptionstatic EllipsoidcreateMarkEllipsoidLeastSquares(CheckedSupplier<List<Point3i>, CreateException> opPoints, Dimensions dimensions, boolean suppressZCovariance, double shell) Creates aEllipsoidusing least-squares fitting to a supplied list of points.static EllipsoidcreateMarkEllipsoidLeastSquares(ObjectMask object, Dimensions dimensions, boolean suppressZCovariance, double shell) Creates aEllipsoidusing least-squares fitting to the points on the outline of anObjectMask.
-
Method Details
-
createMarkEllipsoidLeastSquares
public static Ellipsoid createMarkEllipsoidLeastSquares(ObjectMask object, Dimensions dimensions, boolean suppressZCovariance, double shell) throws CreateException Creates aEllipsoidusing least-squares fitting to the points on the outline of anObjectMask.- Parameters:
object- object-maskdimensions- the dimensions of the scene the object is contained insuppressZCovariance- whether to suppress the covariance in the z-dimension when doing least squares fittingshell- 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 CreateExceptionCreates aEllipsoidusing least-squares fitting to a supplied list of points.- Parameters:
opPoints- supplier for the list of points to fitdimensions- the dimensions of the scene the object is contained insuppressZCovariance- whether to suppress the covariance in the z-dimension when doing least squares fittingshell- shell for the mark that is created- Returns:
- the created
Ellipsoid - Throws:
CreateException- if the ellipsoid creation fails
-