Class EllipsoidFactory
Object
EllipsoidFactory
Factory for creating
Ellipsoid
objects using least-squares fitting.-
Method Summary
Modifier and TypeMethodDescriptionstatic Ellipsoid
createMarkEllipsoidLeastSquares
(CheckedSupplier<List<Point3i>, CreateException> opPoints, Dimensions dimensions, boolean suppressZCovariance, double shell) Creates aEllipsoid
using least-squares fitting to a supplied list of points.static Ellipsoid
createMarkEllipsoidLeastSquares
(ObjectMask object, Dimensions dimensions, boolean suppressZCovariance, double shell) Creates aEllipsoid
using 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 aEllipsoid
using 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 aEllipsoid
using 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
-