Class FitResult
Object
org.anchoranalysis.plugin.points.bean.fitter.FitResult
public class FitResult extends Object
Represents the result of fitting an ellipsoid to a set of points.
-
Constructor Summary
Constructors Constructor Description FitResult() -
Method Summary
Modifier and Type Method Description voidapplyFitResultToMark(org.anchoranalysis.mpp.mark.conic.Ellipsoid mark, org.anchoranalysis.image.core.dimensions.Dimensions sceneDim, double shell)Applies the fit result to anEllipsoidmark.voidapplyRadiiSubtractScale(double subtract, double scale)Applies a subtraction and scaling to the radii of the ellipsoid.protected booleancanEqual(Object other)booleanequals(Object o)org.anchoranalysis.spatial.point.Point3dgetCenterPoint()The center point of the fitted ellipsoid.doublegetRadiusX()The radius of the ellipsoid along the X-axis.doublegetRadiusY()The radius of the ellipsoid along the Y-axis.doublegetRadiusZ()The radius of the ellipsoid along the Z-axis.cern.colt.matrix.DoubleMatrix2DgetRotMatrix()The rotation matrix, which must be considered immutable to be used here.inthashCode()voidimposeMinimumRadius(double minRadius)Imposes a minimum radius on all axes of the ellipsoid.voidsetCenterPoint(org.anchoranalysis.spatial.point.Point3d centerPoint)The center point of the fitted ellipsoid.voidsetRadiusX(double radiusX)The radius of the ellipsoid along the X-axis.voidsetRadiusY(double radiusY)The radius of the ellipsoid along the Y-axis.voidsetRadiusZ(double radiusZ)The radius of the ellipsoid along the Z-axis.voidsetRotMatrix(cern.colt.matrix.DoubleMatrix2D rotMatrix)The rotation matrix, which must be considered immutable to be used here.StringtoString()
-
Constructor Details
-
FitResult
public FitResult()
-
-
Method Details
-
applyFitResultToMark
public void applyFitResultToMark(org.anchoranalysis.mpp.mark.conic.Ellipsoid mark, org.anchoranalysis.image.core.dimensions.Dimensions sceneDim, double shell) throws org.anchoranalysis.mpp.bean.points.fitter.PointsFitterExceptionApplies the fit result to anEllipsoidmark.- Parameters:
mark- theEllipsoidto updatesceneDim- the dimensions of the sceneshell- the shell thickness- Throws:
org.anchoranalysis.mpp.bean.points.fitter.PointsFitterException- if the ellipsoid is outside the scene
-
applyRadiiSubtractScale
public void applyRadiiSubtractScale(double subtract, double scale)Applies a subtraction and scaling to the radii of the ellipsoid.- Parameters:
subtract- the value to subtract from each radiusscale- the scale factor to apply after subtraction
-
imposeMinimumRadius
public void imposeMinimumRadius(double minRadius)Imposes a minimum radius on all axes of the ellipsoid.- Parameters:
minRadius- the minimum allowed radius
-
getCenterPoint
public org.anchoranalysis.spatial.point.Point3d getCenterPoint()The center point of the fitted ellipsoid. -
getRadiusX
public double getRadiusX()The radius of the ellipsoid along the X-axis. -
getRadiusY
public double getRadiusY()The radius of the ellipsoid along the Y-axis. -
getRadiusZ
public double getRadiusZ()The radius of the ellipsoid along the Z-axis. -
getRotMatrix
public cern.colt.matrix.DoubleMatrix2D getRotMatrix()The rotation matrix, which must be considered immutable to be used here. -
setCenterPoint
public void setCenterPoint(org.anchoranalysis.spatial.point.Point3d centerPoint)The center point of the fitted ellipsoid. -
setRadiusX
public void setRadiusX(double radiusX)The radius of the ellipsoid along the X-axis. -
setRadiusY
public void setRadiusY(double radiusY)The radius of the ellipsoid along the Y-axis. -
setRadiusZ
public void setRadiusZ(double radiusZ)The radius of the ellipsoid along the Z-axis. -
setRotMatrix
public void setRotMatrix(cern.colt.matrix.DoubleMatrix2D rotMatrix)The rotation matrix, which must be considered immutable to be used here. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-