Class Boundary2DProjectionMeasurer


public abstract class Boundary2DProjectionMeasurer extends Boundary2DWrapper
  • Method Details

    • getInstance

      public static Boundary2DProjectionMeasurer getInstance(Boundary2DScanner parent, ContourLineType contourLineType, double startAngleInRadians, int numberOfDirections)
    • contourLineType

      public ContourLineType contourLineType()
      Returns the contour line style, used for measuring by this instance. The returned reference is identical to the corresponding argument of getInstance(Boundary2DScanner, ContourLineType, double, int) method, used for creating this instance.
      Returns:
      the contour line style, used for measuring by this instance.
    • startAngleInRadians

      public double startAngleInRadians()
    • numberOfDirections

      public int numberOfDirections()
    • directionAngleInRadians

      public double directionAngleInRadians(int directionIndex)
    • area

      public double area()
      Returns the oriented area inside the contour, following along the scanned boundary. "Oriented" means that the result is equal to the area of the figure inside this contour, Equivalent to area(thisObject.contourLineType()).
      Returns:
      the oriented area inside the scanned contour.
    • perimeter

      public double perimeter()
      Returns the total length of the contour, following along the scanned boundary: an estimated perimeter of the measured object, "drawn" at the bit matrix. Equivalent to perimeter(thisObject.contourLineType()).
      Returns:
      the length of the contour line, following along the scanned boundary.
    • projectionMin

      public abstract double projectionMin(int directionIndex)
    • projectionMax

      public abstract double projectionMax(int directionIndex)
    • projectionLength

      public abstract double projectionLength(int directionIndex)
    • meanProjectionLength

      public double meanProjectionLength()
    • indexOfMinProjectionLength

      public int indexOfMinProjectionLength()
    • indexOfMaxProjectionLength

      public int indexOfMaxProjectionLength()
    • indexOfMinCircumscribedRhombus

      public int indexOfMinCircumscribedRhombus(int stepBetweenDirections)
    • minProjectionLength

      public double minProjectionLength()
    • maxProjectionLength

      public double maxProjectionLength()
    • minCircumscribedRhombus

      public double minCircumscribedRhombus(int stepBetweenDirections)
    • toString

      public String toString()
      Description copied from class: Boundary2DScanner
      Returns a brief string description of this object.

      The result of this method may depend on implementation.

      Overrides:
      toString in class Boundary2DScanner
      Returns:
      a brief string description of this object.