Class IntrinsicVolumesAnalyzer2D.Result

java.lang.Object
inra.ijpb.measure.region2d.IntrinsicVolumesAnalyzer2D.Result
Enclosing class:
IntrinsicVolumesAnalyzer2D

public class IntrinsicVolumesAnalyzer2D.Result
extends java.lang.Object
Inner class for storing results.
  • Field Summary

    Fields
    Modifier and Type Field Description
    double area
    the area of the region.
    double eulerNumber
    the Euler Number of the region.
    double perimeter
    the perimeter of the region.
  • Constructor Summary

    Constructors
    Constructor Description
    Result()
    Default empty constructor.
    Result​(double area, double perim, double euler)
    Creates a new data class for storing intrinsic volume measurements.
  • Method Summary

    Modifier and Type Method Description
    double circularity()
    Computes the circularity value associated with this result.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • area

      public double area
      the area of the region.
    • perimeter

      public double perimeter
      the perimeter of the region.
    • eulerNumber

      public double eulerNumber
      the Euler Number of the region.
  • Constructor Details

    • Result

      public Result()
      Default empty constructor.
    • Result

      public Result​(double area, double perim, double euler)
      Creates a new data class for storing intrinsic volume measurements.
      Parameters:
      area - the area of the region.
      perim - the perimeter of the region
      euler - the Euler number of the region
  • Method Details

    • circularity

      public double circularity()
      Computes the circularity value associated with this result. Circularity circ is defined as the ratio of area with the square of the perimeter, normalized such that a disk has a circularity close to 1.
      Returns:
      the circularity value.