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
    void applyFitResultToMark​(org.anchoranalysis.mpp.mark.conic.Ellipsoid mark, org.anchoranalysis.image.core.dimensions.Dimensions sceneDim, double shell)
    Applies the fit result to an Ellipsoid mark.
    void applyRadiiSubtractScale​(double subtract, double scale)
    Applies a subtraction and scaling to the radii of the ellipsoid.
    protected boolean canEqual​(Object other)  
    boolean equals​(Object o)  
    org.anchoranalysis.spatial.point.Point3d getCenterPoint()
    The center point of the fitted ellipsoid.
    double getRadiusX()
    The radius of the ellipsoid along the X-axis.
    double getRadiusY()
    The radius of the ellipsoid along the Y-axis.
    double getRadiusZ()
    The radius of the ellipsoid along the Z-axis.
    cern.colt.matrix.DoubleMatrix2D getRotMatrix()
    The rotation matrix, which must be considered immutable to be used here.
    int hashCode()  
    void imposeMinimumRadius​(double minRadius)
    Imposes a minimum radius on all axes of the ellipsoid.
    void setCenterPoint​(org.anchoranalysis.spatial.point.Point3d centerPoint)
    The center point of the fitted ellipsoid.
    void setRadiusX​(double radiusX)
    The radius of the ellipsoid along the X-axis.
    void setRadiusY​(double radiusY)
    The radius of the ellipsoid along the Y-axis.
    void setRadiusZ​(double radiusZ)
    The radius of the ellipsoid along the Z-axis.
    void setRotMatrix​(cern.colt.matrix.DoubleMatrix2D rotMatrix)
    The rotation matrix, which must be considered immutable to be used here.
    String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • 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.PointsFitterException
      Applies the fit result to an Ellipsoid mark.
      Parameters:
      mark - the Ellipsoid to update
      sceneDim - the dimensions of the scene
      shell - 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 radius
      scale - 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

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual​(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object