Class EllipsoidFactory
Object
org.anchoranalysis.plugin.points.calculate.ellipsoid.EllipsoidFactory
public class EllipsoidFactory extends Object
Factory for creating
Ellipsoid objects using least-squares fitting.-
Method Summary
Modifier and Type Method Description static org.anchoranalysis.mpp.mark.conic.EllipsoidcreateMarkEllipsoidLeastSquares(org.anchoranalysis.core.functional.checked.CheckedSupplier<List<org.anchoranalysis.spatial.point.Point3i>,org.anchoranalysis.core.exception.CreateException> opPoints, org.anchoranalysis.image.core.dimensions.Dimensions dimensions, boolean suppressZCovariance, double shell)Creates aEllipsoidusing least-squares fitting to a supplied list of points.static org.anchoranalysis.mpp.mark.conic.EllipsoidcreateMarkEllipsoidLeastSquares(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.image.core.dimensions.Dimensions dimensions, boolean suppressZCovariance, double shell)Creates aEllipsoidusing least-squares fitting to the points on the outline of anObjectMask.
-
Method Details
-
createMarkEllipsoidLeastSquares
public static org.anchoranalysis.mpp.mark.conic.Ellipsoid createMarkEllipsoidLeastSquares(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.image.core.dimensions.Dimensions dimensions, boolean suppressZCovariance, double shell) throws org.anchoranalysis.core.exception.CreateExceptionCreates 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:
org.anchoranalysis.core.exception.CreateException- if the ellipsoid creation fails
-
createMarkEllipsoidLeastSquares
public static org.anchoranalysis.mpp.mark.conic.Ellipsoid createMarkEllipsoidLeastSquares(org.anchoranalysis.core.functional.checked.CheckedSupplier<List<org.anchoranalysis.spatial.point.Point3i>,org.anchoranalysis.core.exception.CreateException> opPoints, org.anchoranalysis.image.core.dimensions.Dimensions dimensions, boolean suppressZCovariance, double shell) throws org.anchoranalysis.core.exception.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:
org.anchoranalysis.core.exception.CreateException- if the ellipsoid creation fails
-